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

Provides access to all the triangles of OpenCascade's StlMesh_Mesh. More...

Inheritance diagram for gmio_stl_mesh_occmesh:
gmio_stl_mesh

Public Member Functions

 gmio_stl_mesh_occmesh ()
 
 gmio_stl_mesh_occmesh (const StlMesh_Mesh *mesh)
 
 gmio_stl_mesh_occmesh (const Handle_StlMesh_Mesh &hnd)
 
const StlMesh_Mesh * mesh () const
 

Additional Inherited Members

- Data Fields inherited from gmio_stl_mesh
const void * cookie
 Opaque pointer on the user mesh, passed as first argument to hook functions. More...
 
uint32_t triangle_count
 Number of triangles in the mesh. More...
 
void(* func_get_triangle )(const void *cookie, uint32_t tri_id, struct gmio_stl_triangle *triangle)
 Pointer on a function that stores the mesh triangle of index tri_id into triangle. More...
 

Detailed Description

Provides access to all the triangles of OpenCascade's StlMesh_Mesh.

gmio_stl_mesh_occmesh iterates efficiently over the triangles of all domains.

Example of use:

const Handle_StlMesh_Mesh occmesh = ...;
const gmio_stl_mesh_occmesh mesh(occmesh);
gmio_stl_write_file(stl_format, filepath, &mesh, &options);
Examples:
/examples/occstl_write_file.cpp.

Constructor & Destructor Documentation

gmio_stl_mesh_occmesh::gmio_stl_mesh_occmesh ( )
gmio_stl_mesh_occmesh::gmio_stl_mesh_occmesh ( const StlMesh_Mesh *  mesh)
explicit
gmio_stl_mesh_occmesh::gmio_stl_mesh_occmesh ( const Handle_StlMesh_Mesh &  hnd)
explicit

Member Function Documentation

const StlMesh_Mesh* gmio_stl_mesh_occmesh::mesh ( ) const
inline

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