33 # error C++ compiler required
36 #ifndef GMIO_SUPPORT_STL_OCC_MESH_H
37 #define GMIO_SUPPORT_STL_OCC_MESH_H
40 #include "../gmio_stl/stl_mesh.h"
41 #include "../gmio_stl/stl_mesh_creator.h"
45 #include <BRepBuilderAPI_CellFilter.hxx>
46 #include <BRepBuilderAPI_VertexInspector.hxx>
47 #include <StlMesh_Mesh.hxx>
48 #include <StlMesh_MeshTriangle.hxx>
49 #include <TColgp_SequenceOfXYZ.hxx>
69 inline const StlMesh_Mesh*
mesh()
const {
return m_mesh; }
72 static void get_triangle(
75 void init_C_members();
79 std::vector<const gp_XYZ*> vec_coords;
82 struct triangle_data {
83 const StlMesh_MeshTriangle* ptr_triangle;
84 const domain_data* ptr_domain;
87 const StlMesh_Mesh* m_mesh;
88 std::vector<domain_data> m_vec_domain_data;
89 std::vector<triangle_data> m_vec_triangle_data;
115 inline StlMesh_Mesh*
mesh()
const {
return m_mesh; }
118 static void begin_solid(
120 static void add_triangle(
123 void init_C_members();
126 StlMesh_Mesh* m_mesh;
127 BRepBuilderAPI_CellFilter m_filter;
128 BRepBuilderAPI_VertexInspector m_inspector;
Provides creation of a new domain within an StlMesh_Mesh object.
Definition: stl_occ_mesh.h:109
const StlMesh_Mesh * mesh() const
Definition: stl_occ_mesh.h:69
Vector of three float coords.
Definition: vecgeom.h:27
Provides an interface for accessing the underlying(hidden) user mesh.
Definition: stl_mesh.h:30
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:34
void * cookie
Opaque pointer on the user mesh, passed as first argument to hook functions.
Definition: stl_mesh_creator.h:75
STL mesh triangle.
Definition: stl_triangle.h:30
Provides access to all the triangles of OpenCascade's StlMesh_Mesh.
Definition: stl_occ_mesh.h:63
Provides an interface for the creation of the underlying(hidden) user mesh.
Definition: stl_mesh_creator.h:71
Global declarations for the support module.
StlMesh_Mesh * mesh() const
Definition: stl_occ_mesh.h:115
Informations about the STL stream, used in gmio_stl_mesh_creator::func_begin_solid() ...
Definition: stl_mesh_creator.h:36