27 #include "CornerTag.hpp"
28 #include "MeshSet.hpp"
46 return pd->element_by_index(elem_index).vertex_count();
52 return pd->get_mesh_set() ? pd->get_mesh_set()->get_current_mesh() : 0;
68 sprintf(numbuf,
"%d", corners );
69 msq_std::string name =
tagName + numbuf;
78 mesh->tag_properties(
cornerHandles[corners], name, type, size, err );
99 size_t elem_index,
void* data,
100 size_t bytes, MsqError& err )
106 MsqMeshEntity* elem_array = pd->get_element_array( err );
107 unsigned num_corners = elem_array[elem_index].vertex_count();
111 mesh->tag_get_element_data( tag, 1, &handle, data, err );
113 mesh->tag_set_element_data( tag, 1, &handle, data, err );
#define MSQ_ERRZERO(err)
Return zero/NULL on error.
static size_t size(Mesh::TagType type)
static Mesh * get_current_mesh(PatchData *pd)
TagType
The type of a tag.
EntityHandle ElementHandle
Class Mesh is the main class that holds all information to describe the current state of the mesh...
void * EntityHandle
Opaque EntityHandle type and tag type.
invalid function argument passed
#define MSQ_CHKERR(err)
Mesquite's Error Checking macro.
#define MSQ_SETERR(err)
Macro to set error - use err.clear() to clear.
static int num_corners(PatchData *pd, int elem_index)
const msq_std::string tagName
const Mesh::TagType tagType
void save_load_tags(bool load, PatchData *pd, size_t elem_index, void *data, size_t tag_byes, MsqError &err)
void * TagHandle
Type used to refer to a tag defintion.
TagHandle get_handle(Mesh *mesh, unsigned num_corners, MsqError &err)
Get the tag handle for storing this tag type with the specified number of values (corners).
msq_std::vector< TagHandle > cornerHandles
#define MSQ_ERRRTN(err)
If passed error is true, return from a void function.