HM_Topology

Contains information about mesh area topologies that includes a set of faces, edges and vertices and topological relations between them.

Syntax

struct HM_Topology {
int size;
int error_status;
int num_faces;
int num_loops;
int num_edges;
int num_vertices;
HM_Face* faces;
HM_FaceLoop* loops;
HM_Edge* edges
HM_Vertex* vertices;
double tolerance;
int num_components;
HM_Component* components;
};

Type

HyperMesh Ext API Function

Description

This structure contains information about mesh area topologies that includes a set of faces, edges and vertices and topological relations between them. Detailed topological links between entities are defined within structures contained in arrays pointed to by members of the HM_Topology structure.

The structure information is declared in hm_extapi.h.

The members are: size, error_status, num_faces, num_loops, num_edges, num_vertices, faces, loops, edges, vertices, tolerance, num_components, and components

Inputs

size
Specifies the length, in bytes, of the structure. Use sizeof(HM_Topology) for this member. This is used to distinguish the current version of HM_Topology from possible future extended versions with additional members.
error_status
Used by API functions to return an error status. A value of zero indicates successful completion of a function using this structure.
num_faces
The total number of faces specified by this HM_Topology structure.
num_loops
The total number of loops specified by this HM_Topology structure.
num_edges
The total number of edges specified by this HM_Topology structure.
num_vertices
The total number of vertices specified by this HM_Topology structure.
faces
Pointer to an array of HM_Face structures. The number of entiries in the array must not be smaller than the value specified by the num_faces member of this HM_Topology structure.
loops
Pointer to an array of HM_FaceLoop structures. The number of entiries in the array must not be smaller than the value specified by the num_loops member of this HM_Topology structure.
edges
Pointer to an array of HM_Edge structures. The number of entiries in the array must not be smaller than the value specified by the num_edges member of this HM_Topology structure.
vertices
Pointer to an array of HM_Vertex structures. The number of entiries in the array must not be smaller than the value specified by the num_vertices member of this HM_Topology structure.
tolerance
A positive value of this member specifies the acceptable deviation of geometry points within this HM_Topology structure from the geometry of the model loaded in HyperMesh database.
A negative or zero value of this member indicates that the tolerance value is estimated automatically during the call to API functions.
num_components
The total number of components specified by this HM_Topology structure.
components
Pointer to an array of HM_Component structures. The number of entries in the array must not be smaller than the value specified by num_components.

Errors

None.