Open CASCADE Technology  6.9.1
Data Structures | Public Member Functions
BRepMesh_FastDiscret Class Reference

Algorithm to mesh a shape with respect of the
frontier the deflection and by option the shared
components.
More...

#include <BRepMesh_FastDiscret.hxx>

Inheritance diagram for BRepMesh_FastDiscret:
Inheritance graph
[legend]

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, const Standard_Boolean isInParallel=Standard_False, const Standard_Real theMinSize=Precision::Confusion(), const Standard_Boolean isInternalVerticesMode=Standard_True, const Standard_Boolean isControlSurfaceDeflection=Standard_True)
 
 BRepMesh_FastDiscret (const TopoDS_Shape &shape, 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, const Standard_Boolean isInParallel=Standard_False, const Standard_Real theMinSize=Precision::Confusion(), const Standard_Boolean isInternalVerticesMode=Standard_True, const Standard_Boolean isControlSurfaceDeflection=Standard_True)
 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.
More...
 
void Perform (const TopoDS_Shape &shape)
 Build triangulation on the whole shape. More...
 
Standard_Integer Add (const TopoDS_Face &face)
 Record a face for further processing. More...
 
void Process (const TopoDS_Face &face) const
 Triangulate a face previously recorded for processing by call to Add(). Can be executed in parallel threads. More...
 
void operator() (const TopoDS_Face &face) const
 
void SetParallel (const Standard_Boolean theInParallel)
 Request algorithm to launch in multiple threads
to improve performance (should be supported by plugin).
More...
 
Standard_Boolean IsParallel () const
 Returns the multi-threading usage flag.
More...
 
Standard_Real GetDeflection () const
 returns the deflection value.
More...
 
Standard_Real GetAngle () const
 returns the deflection value.
More...
 
Standard_Boolean WithShare () const
 
Standard_Boolean InShape () const
 
Standard_Boolean ShapeTrigu () const
 
void InitSharedFaces (const TopoDS_Shape &theShape)
 
const TopTools_IndexedDataMapOfShapeListOfShapeSharedFaces () const
 
Standard_Boolean GetFaceAttribute (const TopoDS_Face &theFace, Handle< BRepMesh_FaceAttribute > &theAttribute) const
 Gives face attribute. More...
 
void RemoveFaceAttribute (const TopoDS_Face &theFace)
 Remove face attribute as useless to free locate memory. More...
 
Standard_Integer NbBoundaryPoints () const
 Returns number of boundary 3d points. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const Handle_Standard_Type & DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Detailed Description

Algorithm to mesh a shape with respect of the
frontier the deflection and by option the shared
components.

Constructor & Destructor Documentation

BRepMesh_FastDiscret::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,
const Standard_Boolean  isInParallel = Standard_False,
const Standard_Real  theMinSize = Precision::Confusion(),
const Standard_Boolean  isInternalVerticesMode = Standard_True,
const Standard_Boolean  isControlSurfaceDeflection = Standard_True 
)
BRepMesh_FastDiscret::BRepMesh_FastDiscret ( const TopoDS_Shape shape,
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,
const Standard_Boolean  isInParallel = Standard_False,
const Standard_Real  theMinSize = Precision::Confusion(),
const Standard_Boolean  isInternalVerticesMode = Standard_True,
const Standard_Boolean  isControlSurfaceDeflection = Standard_True 
)

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.

Member Function Documentation

Standard_Integer BRepMesh_FastDiscret::Add ( const TopoDS_Face face)

Record a face for further processing.

Returns
status flags collected during discretization of boundaries of the given face.
Standard_Real BRepMesh_FastDiscret::GetAngle ( ) const
inline

returns the deflection value.

Standard_Real BRepMesh_FastDiscret::GetDeflection ( ) const
inline

returns the deflection value.

Standard_Boolean BRepMesh_FastDiscret::GetFaceAttribute ( const TopoDS_Face theFace,
Handle< BRepMesh_FaceAttribute > &  theAttribute 
) const

Gives face attribute.

void BRepMesh_FastDiscret::InitSharedFaces ( const TopoDS_Shape theShape)
Standard_Boolean BRepMesh_FastDiscret::InShape ( ) const
inline
Standard_Boolean BRepMesh_FastDiscret::IsParallel ( ) const
inline

Returns the multi-threading usage flag.

Standard_Integer BRepMesh_FastDiscret::NbBoundaryPoints ( ) const
inline

Returns number of boundary 3d points.

void BRepMesh_FastDiscret::operator() ( const TopoDS_Face face) const
inline
void BRepMesh_FastDiscret::Perform ( const TopoDS_Shape shape)

Build triangulation on the whole shape.

void BRepMesh_FastDiscret::Process ( const TopoDS_Face face) const

Triangulate a face previously recorded for processing by call to Add(). Can be executed in parallel threads.

void BRepMesh_FastDiscret::RemoveFaceAttribute ( const TopoDS_Face theFace)

Remove face attribute as useless to free locate memory.

void BRepMesh_FastDiscret::SetParallel ( const Standard_Boolean  theInParallel)
inline

Request algorithm to launch in multiple threads
to improve performance (should be supported by plugin).

Standard_Boolean BRepMesh_FastDiscret::ShapeTrigu ( ) const
inline
const TopTools_IndexedDataMapOfShapeListOfShape& BRepMesh_FastDiscret::SharedFaces ( ) const
inline
Standard_Boolean BRepMesh_FastDiscret::WithShare ( ) const
inline

The documentation for this class was generated from the following file: