47 # error C++ compiler required
53 #include "../gmio_stl/stl_mesh.h"
54 #include "../gmio_stl/stl_mesh_creator.h"
56 #include <BRepBuilderAPI_CellFilter.hxx>
57 #include <BRepBuilderAPI_VertexInspector.hxx>
58 #include <StlMesh_Mesh.hxx>
59 #include <StlMesh_MeshTriangle.hxx>
60 #include <TColgp_SequenceOfXYZ.hxx>
80 const Handle_StlMesh_Mesh&
mesh()
const {
return m_mesh; }
83 static void get_triangle(
89 std::vector<const gp_XYZ*> vec_coords;
92 struct triangle_data {
93 const StlMesh_MeshTriangle* ptr_triangle;
94 const domain_data* ptr_domain;
97 Handle_StlMesh_Mesh m_mesh;
98 std::vector<domain_data> m_vec_domain_data;
99 std::vector<triangle_data> m_vec_triangle_data;
124 const Handle_StlMesh_Mesh&
mesh()
const {
return m_mesh; }
127 static void begin_solid(
129 static void add_triangle(
135 Handle_StlMesh_Mesh m_mesh;
136 BRepBuilderAPI_CellFilter m_filter;
137 BRepBuilderAPI_VertexInspector m_inspector;
Provides creation of a new domain within an OpenCascade StlMesh_Mesh.
Definition: stl_occ_mesh.h:119
const Handle_StlMesh_Mesh & mesh() const
Definition: stl_occ_mesh.h:80
Vector of three float coords.
Definition: vecgeom.h:40
Provides an interface for accessing the underlying(hidden) user mesh.
Definition: stl_mesh.h:43
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:47
void * cookie
Opaque pointer on the user mesh, passed as first argument to hook functions.
Definition: stl_mesh_creator.h:82
STL mesh triangle.
Definition: stl_triangle.h:43
const Handle_StlMesh_Mesh & mesh() const
Definition: stl_occ_mesh.h:124
Provides access to all the triangles of an OpenCascade StlMesh_Mesh.
Definition: stl_occ_mesh.h:75
Provides an interface for the creation of the underlying(hidden) user mesh.
Definition: stl_mesh_creator.h:78
Global declarations for the support module.
Informations about the STL stream, used in gmio_stl_mesh_creator::func_begin_solid() ...
Definition: stl_mesh_creator.h:49