Public Member Functions |
| | BRepMesh_FastDiscret (const Standard_Real defle, const Standard_Real angle, const Bnd_Box &B, const Standard_Boolean withShare=Standard_True, const Standard_Boolean inshape=Standard_False, const Standard_Boolean relative=Standard_False, const Standard_Boolean shapetrigu=Standard_False) |
| | BRepMesh_FastDiscret (const Standard_Real defle, const TopoDS_Shape &shape, const Bnd_Box &B, const Standard_Real angle, const Standard_Boolean withShare=Standard_True, const Standard_Boolean inshape=Standard_False, const Standard_Boolean relative=Standard_False, const Standard_Boolean shapetrigu=Standard_False) |
| | if the boolean <relative> is True, the
deflection used for the polygonalisation of
each edge will be <defle> * Size of Edge.
the deflection used for the faces will be the maximum
deflection of their edges.
if <shapetrigu> is True, the triangulation, if exists
with a correct deflection, can be used to re-triangulate
the shape.
if <inshape> is True, the calculated
triangulation will be stored in the shape.
|
| void | Perform (const TopoDS_Shape &shape) |
| | Build triangulation on the whole shape
|
| void | Add (const TopoDS_Face &face) |
| | Record a face for further processing.
|
| void | Process (const TopoDS_Face &face) const |
| | Triangulate a face previously recorded for
processing by call to Add(). Can be executed in
parallel threads.
|
| void | operator() (const TopoDS_Face &face) const |
| Standard_Boolean & | InternalVerticesMode () |
| | Returns mode defining if internal vertices on faces
are taken into consideration or not. If this mode is equal to true
that internal vertices on faces are considered during triangulation.
Default value is equal to false (old behaviour).
|
| BRepMesh_Status | CurrentFaceStatus () const |
| Standard_Integer | NbTriangles () const |
| | Gives the number of built triangles.
|
| const BRepMesh_Triangle & | Triangle (const Standard_Integer Index) const |
| | Gives the triangle of <Index>.
|
| Standard_Integer | NbEdges () const |
| | Gives the number of built Edges
|
| const BRepMesh_Edge & | Edge (const Standard_Integer Index) const |
| | Gives the edge of index <Index>.
|
| Standard_Integer | NbVertices () const |
| | Gives the number of built Vertices.
|
| const BRepMesh_Vertex & | Vertex (const Standard_Integer Index) const |
| | Gives the vertex of <Index>.
|
| const gp_Pnt & | Pnt (const Standard_Integer Index) const |
| | Gives the location3d of the vertex of <Index>.
|
| void | VerticesOfDomain (MeshDS_MapOfInteger &Indices) const |
| | Gives the list of indices of the vertices
|
| void | EdgesOfDomain (MeshDS_MapOfInteger &Indices) const |
| | Gives the list of indices of the edges
|
| void | TrianglesOfDomain (MeshDS_MapOfInteger &Indices) const |
| | Gives the list of indices of the triangles
|
| Standard_Integer | NbPoint3d () const |
| | Gives the number of different location in 3d
space. It is different of the number of
vertices if there is more than one surface.
Even for one surface, the number can be different
if an edge is shared.
|
| const gp_Pnt & | Point3d (const Standard_Integer Index) const |
| | Gives the 3d space location of the vertex <Index>.
|
| Standard_Real | GetDeflection () const |
| | returns the deflection value.
|
| Standard_Real | GetAngle () const |
| | returns the deflection value.
|
| Standard_Boolean | WithShare () const |
| Standard_Boolean | InShape () const |
| Standard_Boolean | ShapeTrigu () const |
| Standard_Boolean | GetFaceAttribute (const TopoDS_Face &face, Handle< BRepMesh_FaceAttribute > &fattrib) const |
| | returns the face deflection value.
|
| void | RemoveFaceAttribute (const TopoDS_Face &face) |
| | remove face attribute as useless to free locate memory
|
| const TopTools_DataMapOfShapeReal & | GetMapOfDefEdge () const |