Open CASCADE Technology  7.3.0
Public Member Functions
BRepMesh_FaceAttribute Class Reference

Auxiliary class for FastDiscret and FastDiscretFace classes. More...

#include <BRepMesh_FaceAttribute.hxx>

Inheritance diagram for BRepMesh_FaceAttribute:
Inheritance graph
[legend]

Public Member Functions

 BRepMesh_FaceAttribute (const BRepMesh::HDMapOfVertexInteger &theBoundaryVertices, const BRepMesh::HDMapOfIntegerPnt &theBoundaryPoints)
 Constructor. Initializes empty attribute. More...
 
 BRepMesh_FaceAttribute (const TopoDS_Face &theFace, const BRepMesh::HDMapOfVertexInteger &theBoundaryVertices, const BRepMesh::HDMapOfIntegerPnt &theBoundaryPoints, const Standard_Boolean theAdaptiveMin)
 Constructor. More...
 
virtual ~BRepMesh_FaceAttribute ()
 Destructor. More...
 
main geometrical properties.
const Handle< BRepAdaptor_HSurface > & Surface () const
 Returns face's surface. More...
 
Standard_Boolean IsInitialized () const
 Returns True in case if this attribute has already been intialized. More...
 
void SetFace (const TopoDS_Face &theFace, const Standard_Boolean theAdaptiveMin)
 Initializes this attribute by the given face. More...
 
const TopoDS_FaceFace () const
 Returns forward oriented face to be used for calculations. More...
 
void SetBoundaryVertices (const BRepMesh::HDMapOfVertexInteger &theVertices)
 Sets boundary vertices map. More...
 
void SetBoundaryPoints (const BRepMesh::HDMapOfIntegerPnt &theBoundaryPoints)
 Sets boundary points map. More...
 
Standard_Real ToleranceU () const
 Returns U tolerance of face calculated regarding its parameters. More...
 
Standard_Real ToleranceV () const
 Returns V tolerance of face calculated regarding its parameters. More...
 
Standard_Real GetDefFace () const
 Gives face deflection parameter. More...
 
void SetDefFace (const Standard_Real theDefFace)
 Sets face deflection. More...
 
Standard_Real GetUMin () const
 Gives minimal value in U domain. More...
 
void SetUMin (const Standard_Real theUMin)
 Sets minimal value in U domain. More...
 
Standard_Real GetVMin () const
 Gives minimal value in V domain. More...
 
void SetVMin (const Standard_Real theVMin)
 Sets minimal value in V domain. More...
 
Standard_Real GetUMax () const
 Gives maximal value in U domain. More...
 
void SetUMax (const Standard_Real theUMax)
 Sets maximal value in U domain. More...
 
Standard_Real GetVMax () const
 Gives maximal value in V domain. More...
 
void SetVMax (const Standard_Real theVMax)
 Sets maximal value in V domain. More...
 
Standard_Real GetDeltaX () const
 Gives value of step in U domain. More...
 
void SetDeltaX (const Standard_Real theDeltaX)
 Sets value of step in U domain. More...
 
Standard_Real GetDeltaY () const
 Gives value of step in V domain. More...
 
void SetDeltaY (const Standard_Real theDeltaY)
 Sets value of step in V domain. More...
 
Standard_Integer GetStatus () const
 Sets set of status flags for this face. More...
 
void SetStatus (const BRepMesh_Status theStatus)
 Sets status flag for this face. More...
 
Standard_Boolean IsValid () const
 Returns TRUE in case if computed data is valid. More...
 
auxiliary structures
void Clear ()
 Clear face attribute. More...
 
BRepMesh::HDMapOfShapePairOfPolygonChangeInternalEdges ()
 Gives reference to map of internal edges of face. More...
 
BRepMesh::HDMapOfIntegerListOfXYChangeLocation2D ()
 Gives reference to map of 2D points of discretization. More...
 
BRepMesh::HDMapOfIntegerPntChangeSurfacePoints ()
 Gives reference to map of 3D points of discretization. More...
 
BRepMesh::HDMapOfVertexIntegerChangeSurfaceVertices ()
 Gives reference to map of vertices of discretization. More...
 
BRepMesh::HIMapOfIntegerChangeVertexEdgeMap ()
 Gives reference on map of (vertex, edge) pairs of face. More...
 
Handle< BRepMesh_DataStructureOfDelaun > & ChangeStructure ()
 Gives Delaunay data structure. More...
 
BRepMesh::HClassifierChangeClassifier ()
 Returns classifier. More...
 
BRepMesh::HVectorOfVertexChangeMeshNodes ()
 Returns mesh nodes calculated for boundaries. More...
 
Point/Vertex/Node manipulators
Standard_Integer LastPointId () const
 Gives the number of different locations in 3D space. More...
 
const gp_PntGetPoint (const BRepMesh_Vertex &theVertex) const
 Gives the 3D location of the vertex. More...
 
const gp_PntGetPoint (const Standard_Integer theIndex) const
 Gives the 3D location of the vertex. More...
 
template<class HVertexExplorer >
Standard_Integer GetVertexIndex (const HVertexExplorer &theVertexExplorer, const Standard_Boolean isFillEdgeVertices=Standard_False)
 Returns index of the given vertex if it exists in cache, elsewhere adds it to cache and returns cached index. More...
 
void AddNode (const Standard_Integer theIndex, const gp_XY &theUV, const BRepMesh_DegreeOfFreedom theMovability, Standard_Integer &theNodeIndex, Standard_Integer &theNodeOnEdgeIndex)
 Adds node with the given parameters to mesh. 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 opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::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 opencascade::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...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Auxiliary methods

gp_XY Scale (const gp_XY &thePoint2d, const Standard_Boolean isToFaceBasis)
 Scales the given point from real parametric space to face basis and otherwise. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Detailed Description

Auxiliary class for FastDiscret and FastDiscretFace classes.

Constructor & Destructor Documentation

◆ BRepMesh_FaceAttribute() [1/2]

BRepMesh_FaceAttribute::BRepMesh_FaceAttribute ( const BRepMesh::HDMapOfVertexInteger theBoundaryVertices,
const BRepMesh::HDMapOfIntegerPnt theBoundaryPoints 
)

Constructor. Initializes empty attribute.

Parameters
theBoundaryVerticesshared map of shape vertices.
theBoundaryPointsshared discretization points of shape boundaries.

◆ BRepMesh_FaceAttribute() [2/2]

BRepMesh_FaceAttribute::BRepMesh_FaceAttribute ( const TopoDS_Face theFace,
const BRepMesh::HDMapOfVertexInteger theBoundaryVertices,
const BRepMesh::HDMapOfIntegerPnt theBoundaryPoints,
const Standard_Boolean  theAdaptiveMin 
)

Constructor.

Parameters
theFaceface the attribute is created for. Used for default initialization. Attribute keeps reference to the source face with forward orientation.
theBoundaryVerticesshared map of shape vertices.
theBoundaryPointsshared discretization points of shape boundaries.
theAdaptiveMinswitches on adaptive computation of minimal parametric tolerance (if true).

◆ ~BRepMesh_FaceAttribute()

virtual BRepMesh_FaceAttribute::~BRepMesh_FaceAttribute ( )
virtual

Destructor.

Member Function Documentation

◆ AddNode()

void BRepMesh_FaceAttribute::AddNode ( const Standard_Integer  theIndex,
const gp_XY theUV,
const BRepMesh_DegreeOfFreedom  theMovability,
Standard_Integer theNodeIndex,
Standard_Integer theNodeOnEdgeIndex 
)

Adds node with the given parameters to mesh.

Parameters
theIndexindex of 3D point corresponded to the node.
theUVnode position.
theMovabilitymovability of a node.
theNodeIndexindex of vertex in mesh structure.
theNodeOnEdgeIndexordered index of node on the boundary.

◆ ChangeClassifier()

BRepMesh::HClassifier& BRepMesh_FaceAttribute::ChangeClassifier ( )
inline

Returns classifier.

◆ ChangeInternalEdges()

BRepMesh::HDMapOfShapePairOfPolygon& BRepMesh_FaceAttribute::ChangeInternalEdges ( )
inline

Gives reference to map of internal edges of face.

◆ ChangeLocation2D()

BRepMesh::HDMapOfIntegerListOfXY& BRepMesh_FaceAttribute::ChangeLocation2D ( )
inline

Gives reference to map of 2D points of discretization.

◆ ChangeMeshNodes()

BRepMesh::HVectorOfVertex& BRepMesh_FaceAttribute::ChangeMeshNodes ( )
inline

Returns mesh nodes calculated for boundaries.

◆ ChangeStructure()

Handle< BRepMesh_DataStructureOfDelaun >& BRepMesh_FaceAttribute::ChangeStructure ( )
inline

Gives Delaunay data structure.

◆ ChangeSurfacePoints()

BRepMesh::HDMapOfIntegerPnt& BRepMesh_FaceAttribute::ChangeSurfacePoints ( )
inline

Gives reference to map of 3D points of discretization.

◆ ChangeSurfaceVertices()

BRepMesh::HDMapOfVertexInteger& BRepMesh_FaceAttribute::ChangeSurfaceVertices ( )
inline

Gives reference to map of vertices of discretization.

◆ ChangeVertexEdgeMap()

BRepMesh::HIMapOfInteger& BRepMesh_FaceAttribute::ChangeVertexEdgeMap ( )
inline

Gives reference on map of (vertex, edge) pairs of face.

◆ Clear()

void BRepMesh_FaceAttribute::Clear ( )

Clear face attribute.

◆ Face()

const TopoDS_Face& BRepMesh_FaceAttribute::Face ( ) const
inline

Returns forward oriented face to be used for calculations.

◆ GetDefFace()

Standard_Real BRepMesh_FaceAttribute::GetDefFace ( ) const
inline

Gives face deflection parameter.

◆ GetDeltaX()

Standard_Real BRepMesh_FaceAttribute::GetDeltaX ( ) const
inline

Gives value of step in U domain.

◆ GetDeltaY()

Standard_Real BRepMesh_FaceAttribute::GetDeltaY ( ) const
inline

Gives value of step in V domain.

◆ GetPoint() [1/2]

const gp_Pnt& BRepMesh_FaceAttribute::GetPoint ( const BRepMesh_Vertex theVertex) const
inline

Gives the 3D location of the vertex.

◆ GetPoint() [2/2]

const gp_Pnt& BRepMesh_FaceAttribute::GetPoint ( const Standard_Integer  theIndex) const
inline

Gives the 3D location of the vertex.

◆ GetStatus()

Standard_Integer BRepMesh_FaceAttribute::GetStatus ( ) const
inline

Sets set of status flags for this face.

◆ GetUMax()

Standard_Real BRepMesh_FaceAttribute::GetUMax ( ) const
inline

Gives maximal value in U domain.

◆ GetUMin()

Standard_Real BRepMesh_FaceAttribute::GetUMin ( ) const
inline

Gives minimal value in U domain.

◆ GetVertexIndex()

template<class HVertexExplorer >
Standard_Integer BRepMesh_FaceAttribute::GetVertexIndex ( const HVertexExplorer &  theVertexExplorer,
const Standard_Boolean  isFillEdgeVertices = Standard_False 
)
inline

Returns index of the given vertex if it exists in cache, elsewhere adds it to cache and returns cached index.

Parameters
theVertexExplorertemplate parameter intended to transfer parameters of vertex to method. Explorer class can implement different approaches of extraction of target parameters.
isFillEdgeVerticesif TRUE adds vertex to shared map of edges vertices, elsewhere adds it map of face vertices.

◆ GetVMax()

Standard_Real BRepMesh_FaceAttribute::GetVMax ( ) const
inline

Gives maximal value in V domain.

◆ GetVMin()

Standard_Real BRepMesh_FaceAttribute::GetVMin ( ) const
inline

Gives minimal value in V domain.

◆ IsInitialized()

Standard_Boolean BRepMesh_FaceAttribute::IsInitialized ( ) const
inline

Returns True in case if this attribute has already been intialized.

◆ IsValid()

Standard_Boolean BRepMesh_FaceAttribute::IsValid ( ) const
inline

Returns TRUE in case if computed data is valid.

◆ LastPointId()

Standard_Integer BRepMesh_FaceAttribute::LastPointId ( ) const
inline

Gives the number of different locations in 3D space.

◆ Scale()

gp_XY BRepMesh_FaceAttribute::Scale ( const gp_XY thePoint2d,
const Standard_Boolean  isToFaceBasis 
)

Scales the given point from real parametric space to face basis and otherwise.

Parameters
thePoint2dpoint to be scaled.
isToFaceBasisif TRUE converts point to face basis, otherwise performs reverse conversion.
Returns
scaled point.

◆ SetBoundaryPoints()

void BRepMesh_FaceAttribute::SetBoundaryPoints ( const BRepMesh::HDMapOfIntegerPnt theBoundaryPoints)
inline

Sets boundary points map.

◆ SetBoundaryVertices()

void BRepMesh_FaceAttribute::SetBoundaryVertices ( const BRepMesh::HDMapOfVertexInteger theVertices)
inline

Sets boundary vertices map.

◆ SetDefFace()

void BRepMesh_FaceAttribute::SetDefFace ( const Standard_Real  theDefFace)
inline

Sets face deflection.

◆ SetDeltaX()

void BRepMesh_FaceAttribute::SetDeltaX ( const Standard_Real  theDeltaX)
inline

Sets value of step in U domain.

◆ SetDeltaY()

void BRepMesh_FaceAttribute::SetDeltaY ( const Standard_Real  theDeltaY)
inline

Sets value of step in V domain.

◆ SetFace()

void BRepMesh_FaceAttribute::SetFace ( const TopoDS_Face theFace,
const Standard_Boolean  theAdaptiveMin 
)

Initializes this attribute by the given face.

◆ SetStatus()

void BRepMesh_FaceAttribute::SetStatus ( const BRepMesh_Status  theStatus)
inline

Sets status flag for this face.

◆ SetUMax()

void BRepMesh_FaceAttribute::SetUMax ( const Standard_Real  theUMax)
inline

Sets maximal value in U domain.

◆ SetUMin()

void BRepMesh_FaceAttribute::SetUMin ( const Standard_Real  theUMin)
inline

Sets minimal value in U domain.

◆ SetVMax()

void BRepMesh_FaceAttribute::SetVMax ( const Standard_Real  theVMax)
inline

Sets maximal value in V domain.

◆ SetVMin()

void BRepMesh_FaceAttribute::SetVMin ( const Standard_Real  theVMin)
inline

Sets minimal value in V domain.

◆ Surface()

const Handle< BRepAdaptor_HSurface >& BRepMesh_FaceAttribute::Surface ( ) const
inline

Returns face's surface.

◆ ToleranceU()

Standard_Real BRepMesh_FaceAttribute::ToleranceU ( ) const

Returns U tolerance of face calculated regarding its parameters.

◆ ToleranceV()

Standard_Real BRepMesh_FaceAttribute::ToleranceV ( ) const

Returns V tolerance of face calculated regarding its parameters.


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