47 # error C++ compiler required
50 #ifndef GMIO_SUPPORT_STL_OCC_MESH_H
51 #define GMIO_SUPPORT_STL_OCC_MESH_H
54 #include "../gmio_stl/stl_mesh.h"
55 #include "../gmio_stl/stl_mesh_creator.h"
59 #include <BRepBuilderAPI_CellFilter.hxx>
60 #include <BRepBuilderAPI_VertexInspector.hxx>
61 #include <StlMesh_Mesh.hxx>
62 #include <StlMesh_MeshTriangle.hxx>
63 #include <TColgp_SequenceOfXYZ.hxx>
83 inline const StlMesh_Mesh*
mesh()
const {
return m_mesh; }
86 static void get_triangle(
89 void init_C_members();
93 std::vector<const gp_XYZ*> vec_coords;
96 struct triangle_data {
97 const StlMesh_MeshTriangle* ptr_triangle;
98 const domain_data* ptr_domain;
101 const StlMesh_Mesh* m_mesh;
102 std::vector<domain_data> m_vec_domain_data;
103 std::vector<triangle_data> m_vec_triangle_data;
129 inline StlMesh_Mesh*
mesh()
const {
return m_mesh; }
132 static void begin_solid(
134 static void add_triangle(
137 void init_C_members();
140 StlMesh_Mesh* m_mesh;
141 BRepBuilderAPI_CellFilter m_filter;
142 BRepBuilderAPI_VertexInspector m_inspector;
Provides creation of a new domain within an StlMesh_Mesh object.
Definition: stl_occ_mesh.h:123
const StlMesh_Mesh * mesh() const
Definition: stl_occ_mesh.h:83
Vector of three float coords.
Definition: vecgeom.h:41
Provides an interface for accessing the underlying(hidden) user mesh.
Definition: stl_mesh.h:44
gmio_stl_mesh_creator_occmesh()
const void * cookie
Opaque pointer on the user mesh, passed as first argument to hook functions.
Definition: stl_mesh.h:48
void * cookie
Opaque pointer on the user mesh, passed as first argument to hook functions.
Definition: stl_mesh_creator.h:89
STL mesh triangle.
Definition: stl_triangle.h:44
Provides access to all the triangles of OpenCascade's StlMesh_Mesh.
Definition: stl_occ_mesh.h:77
Provides an interface for the creation of the underlying(hidden) user mesh.
Definition: stl_mesh_creator.h:85
Global declarations for the support module.
StlMesh_Mesh * mesh() const
Definition: stl_occ_mesh.h:129
Informations about the STL stream, used in gmio_stl_mesh_creator::func_begin_solid() ...
Definition: stl_mesh_creator.h:50