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_occshape Struct Reference

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

Inheritance diagram for gmio_stl_mesh_occshape:
gmio_stl_mesh

Public Member Functions

 gmio_stl_mesh_occshape ()
 
 gmio_stl_mesh_occshape (const TopoDS_Shape &shape)
 
const TopoDS_Shape * shape () 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 internal triangles of OpenCascade's TopoDS_Shape.

gmio_stl_mesh_occshape iterates efficiently over the triangles of all sub TopoDS_Faces(internal Poly_Triangulation objects).

Example of use:

const TopoDS_Shape occshape = ...;
const gmio_stl_mesh_occshape mesh(occshape);
gmio_stl_write_file(stl_format, filepath, &occmesh, &options);

Constructor & Destructor Documentation

gmio_stl_mesh_occshape::gmio_stl_mesh_occshape ( )
gmio_stl_mesh_occshape::gmio_stl_mesh_occshape ( const TopoDS_Shape &  shape)
explicit

Member Function Documentation

const TopoDS_Shape* gmio_stl_mesh_occshape::shape ( ) const
inline

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