68 sprintf(numbuf,
"%d", corners );
69 msq_std::string name =
tagName + numbuf;
99 size_t elem_index,
void* data,
#define MSQ_ERRZERO(err)
Return zero/NULL on error.
static size_t size(Mesh::TagType type)
static Mesh * get_current_mesh(PatchData *pd)
Used to hold the error state and return it to the application.
TagType
The type of a tag.
virtual TagHandle tag_get(const msq_std::string &name, MsqError &err)=0
Get handle for existing tag, by name.
virtual void tag_set_element_data(TagHandle handle, size_t num_elems, const ElementHandle *elem_array, const void *tag_data, MsqError &err)=0
Set tag values on elements.
const Mesh::ElementHandle * get_element_handles_array() const
EntityHandle ElementHandle
MsqMeshEntity is the Mesquite object that stores information about the elements in the mesh...
void * EntityHandle
Opaque EntityHandle type and tag type.
virtual TagHandle tag_create(const msq_std::string &tag_name, TagType type, unsigned length, const void *default_value, MsqError &err)=0
Create a tag.
invalid function argument passed
msq_stdc::size_t vertex_count() const
Returns the number of vertices in this element, based on its element type.
#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
A Mesquite::Mesh is a collection of mesh elements which are composed of mesh vertices. Intermediate objects are not accessible through this interface (where intermediate objects include things like the faces of a hex, or an element's edges).
MsqMeshEntity & element_by_index(size_t index)
virtual void tag_properties(TagHandle handle, msq_std::string &name_out, TagType &type_out, unsigned &length_out, MsqError &err)=0
Get properites of tag.
MeshSet * get_mesh_set()
Returns the originating meshSet.
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.
const MsqMeshEntity * get_element_array(MsqError &err) const
Returns a pointer to the start of the element array.
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).
Mesh * get_current_mesh()
msq_std::vector< TagHandle > cornerHandles
virtual void tag_get_element_data(TagHandle handle, size_t num_elems, const ElementHandle *elem_array, void *tag_data, MsqError &err)=0
Get tag values on elements.
#define MSQ_ERRRTN(err)
If passed error is true, return from a void function.