Open CASCADE Technology  7.6.0
Public Member Functions | Protected Member Functions | Protected Attributes

BRepMesh_DefaultRangeSplitter Class Reference

Default tool to define range of discrete face model and obtain grid points distributed within this range. More...

#include <BRepMesh_DefaultRangeSplitter.hxx>

Inheritance diagram for BRepMesh_DefaultRangeSplitter:
Inheritance graph
[legend]

Public Member Functions

 BRepMesh_DefaultRangeSplitter ()
 Constructor. More...
 
virtual ~BRepMesh_DefaultRangeSplitter ()
 Destructor. More...
 
virtual void Reset (const IMeshData::IFaceHandle &theDFace, const IMeshTools_Parameters &theParameters)
 Resets this splitter. Must be called before first use. More...
 
virtual void AddPoint (const gp_Pnt2d &thePoint)
 Registers border point. More...
 
virtual void AdjustRange ()
 Updates discrete range of surface according to its geometric range. More...
 
virtual Standard_Boolean IsValid ()
 Returns True if computed range is valid. More...
 
gp_Pnt2d Scale (const gp_Pnt2d &thePoint, const Standard_Boolean isToFaceBasis) const
 Scales the given point from real parametric space to face basis and otherwise. More...
 
virtual Handle< IMeshData::ListOfPnt2dGenerateSurfaceNodes (const IMeshTools_Parameters &theParameters) const
 Returns list of nodes generated using surface data and specified parameters. By default returns null ptr. More...
 
gp_Pnt Point (const gp_Pnt2d &thePoint2d) const
 Returns point in 3d space corresponded to the given point defined in parameteric space of surface. More...
 
const IMeshData::IFaceHandleGetDFace () const
 Returns face model. More...
 
const Handle< BRepAdaptor_Surface > & GetSurface () const
 Returns surface. More...
 
const std::pair< Standard_Real, Standard_Real > & GetRangeU () const
 Returns U range. More...
 
const std::pair< Standard_Real, Standard_Real > & GetRangeV () const
 Returns V range. More...
 
const std::pair< Standard_Real, Standard_Real > & GetDelta () const
 Returns delta. More...
 
const std::pair< Standard_Real, Standard_Real > & GetToleranceUV () const
 

Protected Member Functions

virtual void computeTolerance (const Standard_Real theLenU, const Standard_Real theLenV)
 Computes parametric tolerance taking length along U and V into account. More...
 
virtual void computeDelta (const Standard_Real theLengthU, const Standard_Real theLengthV)
 Computes parametric delta taking length along U and V and value of tolerance into account. More...
 

Protected Attributes

IMeshData::IFaceHandle myDFace
 
std::pair< Standard_Real, Standard_RealmyRangeU
 
std::pair< Standard_Real, Standard_RealmyRangeV
 
std::pair< Standard_Real, Standard_RealmyDelta
 
std::pair< Standard_Real, Standard_RealmyTolerance
 
Standard_Boolean myIsValid
 

Detailed Description

Default tool to define range of discrete face model and obtain grid points distributed within this range.

Constructor & Destructor Documentation

◆ BRepMesh_DefaultRangeSplitter()

BRepMesh_DefaultRangeSplitter::BRepMesh_DefaultRangeSplitter ( )
inline

Constructor.

◆ ~BRepMesh_DefaultRangeSplitter()

virtual BRepMesh_DefaultRangeSplitter::~BRepMesh_DefaultRangeSplitter ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ AddPoint()

virtual void BRepMesh_DefaultRangeSplitter::AddPoint ( const gp_Pnt2d thePoint)
virtual

Registers border point.

Reimplemented in BRepMesh_TorusRangeSplitter, and BRepMesh_BoundaryParamsRangeSplitter.

◆ AdjustRange()

virtual void BRepMesh_DefaultRangeSplitter::AdjustRange ( )
virtual

Updates discrete range of surface according to its geometric range.

Reimplemented in BRepMesh_NURBSRangeSplitter.

◆ computeDelta()

virtual void BRepMesh_DefaultRangeSplitter::computeDelta ( const Standard_Real  theLengthU,
const Standard_Real  theLengthV 
)
protectedvirtual

Computes parametric delta taking length along U and V and value of tolerance into account.

Reimplemented in BRepMesh_CylinderRangeSplitter.

◆ computeTolerance()

virtual void BRepMesh_DefaultRangeSplitter::computeTolerance ( const Standard_Real  theLenU,
const Standard_Real  theLenV 
)
protectedvirtual

Computes parametric tolerance taking length along U and V into account.

◆ GenerateSurfaceNodes()

virtual Handle< IMeshData::ListOfPnt2d > BRepMesh_DefaultRangeSplitter::GenerateSurfaceNodes ( const IMeshTools_Parameters theParameters) const
virtual

Returns list of nodes generated using surface data and specified parameters. By default returns null ptr.

Reimplemented in BRepMesh_TorusRangeSplitter, BRepMesh_SphereRangeSplitter, BRepMesh_NURBSRangeSplitter, BRepMesh_CylinderRangeSplitter, and BRepMesh_ConeRangeSplitter.

◆ GetDelta()

const std::pair<Standard_Real, Standard_Real>& BRepMesh_DefaultRangeSplitter::GetDelta ( ) const
inline

Returns delta.

◆ GetDFace()

const IMeshData::IFaceHandle& BRepMesh_DefaultRangeSplitter::GetDFace ( ) const
inline

Returns face model.

◆ GetRangeU()

const std::pair<Standard_Real, Standard_Real>& BRepMesh_DefaultRangeSplitter::GetRangeU ( ) const
inline

Returns U range.

◆ GetRangeV()

const std::pair<Standard_Real, Standard_Real>& BRepMesh_DefaultRangeSplitter::GetRangeV ( ) const
inline

Returns V range.

◆ GetSurface()

const Handle< BRepAdaptor_Surface >& BRepMesh_DefaultRangeSplitter::GetSurface ( ) const
inline

Returns surface.

◆ GetToleranceUV()

const std::pair<Standard_Real, Standard_Real>& BRepMesh_DefaultRangeSplitter::GetToleranceUV ( ) const
inline

◆ IsValid()

virtual Standard_Boolean BRepMesh_DefaultRangeSplitter::IsValid ( )
virtual

Returns True if computed range is valid.

◆ Point()

gp_Pnt BRepMesh_DefaultRangeSplitter::Point ( const gp_Pnt2d thePoint2d) const
inline

Returns point in 3d space corresponded to the given point defined in parameteric space of surface.

◆ Reset()

virtual void BRepMesh_DefaultRangeSplitter::Reset ( const IMeshData::IFaceHandle theDFace,
const IMeshTools_Parameters theParameters 
)
virtual

Resets this splitter. Must be called before first use.

Reimplemented in BRepMesh_UVParamRangeSplitter, and BRepMesh_CylinderRangeSplitter.

◆ Scale()

gp_Pnt2d BRepMesh_DefaultRangeSplitter::Scale ( const gp_Pnt2d thePoint,
const Standard_Boolean  isToFaceBasis 
) const

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

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

Field Documentation

◆ myDelta

std::pair<Standard_Real, Standard_Real> BRepMesh_DefaultRangeSplitter::myDelta
protected

◆ myDFace

IMeshData::IFaceHandle BRepMesh_DefaultRangeSplitter::myDFace
protected

◆ myIsValid

Standard_Boolean BRepMesh_DefaultRangeSplitter::myIsValid
protected

◆ myRangeU

std::pair<Standard_Real, Standard_Real> BRepMesh_DefaultRangeSplitter::myRangeU
protected

◆ myRangeV

std::pair<Standard_Real, Standard_Real> BRepMesh_DefaultRangeSplitter::myRangeV
protected

◆ myTolerance

std::pair<Standard_Real, Standard_Real> BRepMesh_DefaultRangeSplitter::myTolerance
protected

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