EDA Mesh Topology
From DocR21
Both surface and volumetric meshes are represented by a set of nodes and a set of elements containing faces and edges. The faces and edges are described as lists of indices into the nodes array for the entire mesh. Control of mesh properties is handled through the mesh options arguments to the mesh generation functions with the va_surface_mesh_options and va_tet_mesh_options objects.
Contents |
Topology
- See also: EDA Querying
The node array for a mesh is an indexed array with the indices starting at 1. The positions of sets of nodes may be queried with api_va_get_node_positions.
All elements in a mesh are represented by an ID, which is also 1 based. api_va_get_element_data is used to query information about an element in the mesh; the sections below describe the faces and edges depending on the type of the element.
Surface Mesh Elements
For surface meshes there is one face in each element. Both Triangular and Quadrilateral faces are supported through the va_surface_mesh_options parameter to the mesh generation function api_va_generate_surface_mesh.
Volumetric Mesh Elements
For volumetric meshes, only tetrahedral meshes are supported in which there are four triangular faces in each element. The tetrahedral meshes may only be generated from triangulated surface meshes, so internally api_va_generate_tet_mesh creates a triangular surface mesh if called with ACIS ENTITYs to convert. If a surface mesh is used as input then it cannot be made up of quadrilateral elements.
Mesh Order
Linear or Parabolic output meshes are supported through the va_surface_mesh_options argument to the generation functions.
Element Types
Once a mesh has been generated, the elements may be queried for information using api_va_get_element_data which will return the type of the element as VA_ELEMENT_TYPE, the number of faces in the element, the number of edges in the element, the number of nodes in the element and the actual node indices within the mesh. To get information about the node positions, use api_va_get_node_positions. Refer to the following table for an explanation of each of the types that may be returned:









