v0.4.1
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Public Member Functions
gmio_stl_mesh_creator_occmesh Struct Reference

Provides creation of a new domain within an OpenCascade StlMesh_Mesh. More...

Inheritance diagram for gmio_stl_mesh_creator_occmesh:
gmio_stl_mesh_creator

Public Member Functions

 gmio_stl_mesh_creator_occmesh ()
 
 gmio_stl_mesh_creator_occmesh (const Handle_StlMesh_Mesh &hnd)
 
const Handle_StlMesh_Mesh & mesh () const
 

Additional Inherited Members

- Data Fields inherited from gmio_stl_mesh_creator
void * cookie
 Opaque pointer on the user mesh, passed as first argument to hook functions. More...
 
void(* func_begin_solid )(void *cookie, const struct gmio_stl_mesh_creator_infos *infos)
 Optional function that handles declaration of a solid. More...
 
void(* func_add_triangle )(void *cookie, uint32_t tri_id, const struct gmio_stl_triangle *triangle)
 Function that adds a triangle to the user mesh. More...
 
void(* func_end_solid )(void *cookie)
 Optional function that finalizes creation of the user mesh. More...
 

Detailed Description

Provides creation of a new domain within an OpenCascade StlMesh_Mesh.

gmio_stl_mesh_creator::func_add_triangle() calls StlMesh_Mesh::AddVertex() only for new unique vertices, ie. they are no vertex duplicates in the resulting domain.

As of OpenCascade v7.0.0, it's not possible to rely on StlMesh_Mesh::AddOnlyNewVertex(): this function still has the same effect as StlMesh_Mesh::AddVertex()

Example of use:

Handle_StlMesh_Mesh occmesh = new StlMesh_Mesh;
gmio_stl_mesh_creator_occmesh meshcreator(occmesh);
gmio_stl_read_file(filepath, &meshcreator, &options);
Examples:
/examples/occstl_read_file.cpp, and /examples/occstl_redefine_mesh_creator.cpp.

Constructor & Destructor Documentation

gmio_stl_mesh_creator_occmesh::gmio_stl_mesh_creator_occmesh ( )
gmio_stl_mesh_creator_occmesh::gmio_stl_mesh_creator_occmesh ( const Handle_StlMesh_Mesh &  hnd)
explicit

Member Function Documentation

const Handle_StlMesh_Mesh& gmio_stl_mesh_creator_occmesh::mesh ( ) const
inline

The documentation for this struct was generated from the following file:
Fougue © 2017