v0.2.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 StlMesh_Mesh object. 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 (StlMesh_Mesh *mesh)
 
 gmio_stl_mesh_creator_occmesh (const Handle_StlMesh_Mesh &hnd)
 
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 pointer on a function that handles declaration of a solid. More...
 
void(* func_add_triangle )(void *cookie, uint32_t tri_id, const struct gmio_stl_triangle *triangle)
 Pointer on a function that adds a triangle to the user mesh. More...
 
void(* func_end_solid )(void *cookie)
 Optional pointer on a function that finalizes creation of the user mesh. More...
 

Detailed Description

Provides creation of a new domain within an StlMesh_Mesh object.

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 ( StlMesh_Mesh *  mesh)
explicit
gmio_stl_mesh_creator_occmesh::gmio_stl_mesh_creator_occmesh ( const Handle_StlMesh_Mesh &  hnd)
explicit

Member Function Documentation

StlMesh_Mesh* gmio_stl_mesh_creator_occmesh::mesh ( ) const
inline

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