Mesh
Types
uint32_t |
Fields
std::vector< MeshElement > |
|
std::vector< MeshElement > |
|
std::vector< MeshElement > |
|
std::vector< uint8_t > |
|
std::vector< uint8_t > |
|
std::vector< uint8_t > |
|
Functions
Mesh & |
|
Mesh & |
|
bool |
|
bool |
Detailed Description
-
class Mesh : public SC::Store::BaseMesh
The Mesh class is used to define a MeshKey.
It contains any number of face elements, polyline elements, and point elements.
It may specify a MaterialKey for its faces, polylines and points. These MaterialKeys are the default material used for an instance that does not provide specific instance-level materials.
A mesh element index may be given an optional MaterialKey by providing a MaterialMapKey. This MaterialMapKey is the default for any instance of this mesh.
A Mesh is movable but not copyable.
Public Types
-
enum Bits
Values:
-
enumerator None
-
enumerator ClockwiseWinding
Set a winding if known.
-
enumerator CounterClockwiseWinding
-
enumerator TwoSided
If set, the mesh will not be back-face culled.
-
enumerator Manifold
Set if mesh faces define a manifold body. This allows cutting plane capping for the mesh.
-
enumerator RandomizedPoints
Set if mesh points are randomized. This allows vertex decimation for the mesh.
-
enumerator Default
-
enumerator None
Public Members
-
std::vector<MeshElement> face_elements
These define the mesh’s faces.
-
std::vector<MeshElement> polyline_elements
These define the mesh’s lines.
-
std::vector<MeshElement> point_elements
These define the mesh’s points.
-
std::vector<uint8_t> face_elements_bits
Optional bits for filtering selections on the mesh element.
The default bit value is 0. The provided values will cycle for all mesh elements. If the vector of bits is length 1, then the single value will apply for all mesh elements of the type. If more bits are provided than mesh elements it will throw an exception.
-
std::vector<uint8_t> polyline_elements_bits
Optional bits for filtering selections on the mesh element.
-
std::vector<uint8_t> point_elements_bits
Optional bits for filtering selections on the mesh element.
-
MaterialKey mesh_face_material
Optional material that applies to the Mesh faces.
-
MaterialKey mesh_line_material
Optional material that applies to the Mesh lines.
-
MaterialKey mesh_point_material
Optional material that applies to the Mesh points.
-
MaterialMapKey mesh_face_element_material_map
Optional material map that applies to faces in the MeshElement at the matching indices.
-
MaterialMapKey mesh_line_element_material_map
Optional material map that applies to lines in the MeshElement at the matching indices.
-
MaterialMapKey mesh_point_element_material_map
Optional material map that applies to points in the MeshElement at the matching indices.
-
enum Bits