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, const TopTools_IndexedDataMapOfShapeListOfShape &ancestor) |
| 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 |
BRepMesh_Status | CurrentFaceStatus () const |
void | SetParallel (const Standard_Boolean theInParallel) |
| Request algorithm to launch in multiple threads
to improve performance (should be supported by plugin).
|
Standard_Boolean | IsParallel () const |
| Returns the multi-threading usage flag.
|
void | CreateMutexesForSubShapes (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theType) |
| Creates mutexes for each sub-shape of type theType in theShape.
Used to avoid data races.
|
void | RemoveAllMutexes () |
| Removes all created mutexes
|
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 (BRepMesh_MapOfInteger &Indices) const |
| Gives the list of indices of the vertices
|
void | EdgesOfDomain (BRepMesh_MapOfInteger &Indices) const |
| Gives the list of indices of the edges
|
void | TrianglesOfDomain (BRepMesh_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 |
Static Public Member Functions |
static Standard_Real | RelativeEdgeDeflection (const TopoDS_Edge &edge, const Standard_Real defle, const Standard_Real dtotale, Standard_Real &cdef) |
| Returns computed relative deflection for edge
|
static void | BoxMaxDimension (const Bnd_Box &box, Standard_Real &maxdim) |
| Returns the maximal dimension of Bnd_Box
|