Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
BRepMesh_CircleTool Class Reference

Create sort and destroy the circles used in triangulation. More...

#include <BRepMesh_CircleTool.hxx>

Public Member Functions

 BRepMesh_CircleTool (const occ::handle< NCollection_IncAllocator > &theAllocator)
 Constructor.
 
 BRepMesh_CircleTool (const int theReservedSize, const occ::handle< NCollection_IncAllocator > &theAllocator)
 Constructor.
 
void Init (const int)
 Initializes the tool.
 
void SetCellSize (const double theSize)
 Sets new size for cell filter.
 
void SetCellSize (const double theSizeX, const double theSizeY)
 Sets new size for cell filter.
 
void SetMinMaxSize (const gp_XY &theMin, const gp_XY &theMax)
 Sets limits of inspection area.
 
bool IsEmpty () const
 Returns true if cell filter contains no circle.
 
void Bind (const int theIndex, const gp_Circ2d &theCircle)
 Binds the circle to the tool.
 
bool Bind (const int theIndex, const gp_XY &thePoint1, const gp_XY &thePoint2, const gp_XY &thePoint3)
 Computes circle on three points and bind it to the tool.
 
void MocBind (const int theIndex)
 Binds implicit zero circle.
 
void Delete (const int theIndex)
 Deletes a circle from the tool.
 
IMeshData::ListOfIntegerSelect (const gp_XY &thePoint)
 Select the circles shot by the given point.
 

Static Public Member Functions

static bool MakeCircle (const gp_XY &thePoint1, const gp_XY &thePoint2, const gp_XY &thePoint3, gp_XY &theLocation, double &theRadius)
 Computes circle on three points.
 

Detailed Description

Create sort and destroy the circles used in triangulation.

Constructor & Destructor Documentation

◆ BRepMesh_CircleTool() [1/2]

BRepMesh_CircleTool::BRepMesh_CircleTool ( const occ::handle< NCollection_IncAllocator > & theAllocator)

Constructor.

Parameters
theAllocatormemory allocator to be used by internal structures.

◆ BRepMesh_CircleTool() [2/2]

BRepMesh_CircleTool::BRepMesh_CircleTool ( const int theReservedSize,
const occ::handle< NCollection_IncAllocator > & theAllocator )

Constructor.

Parameters
theReservedSizesize to be reserved for vector of circles.
theAllocatormemory allocator to be used by internal structures.

Member Function Documentation

◆ Bind() [1/2]

void BRepMesh_CircleTool::Bind ( const int theIndex,
const gp_Circ2d & theCircle )

Binds the circle to the tool.

Parameters
theIndexindex a circle should be bound with.
theCirclecircle to be bound.

◆ Bind() [2/2]

bool BRepMesh_CircleTool::Bind ( const int theIndex,
const gp_XY & thePoint1,
const gp_XY & thePoint2,
const gp_XY & thePoint3 )

Computes circle on three points and bind it to the tool.

Parameters
theIndexindex a circle should be bound with.
thePoint1first point.
thePoint2second point.
thePoint3third point.
Returns
FALSE in case of impossibility to build a circle on the given points, TRUE elsewhere.

◆ Delete()

void BRepMesh_CircleTool::Delete ( const int theIndex)

Deletes a circle from the tool.

Parameters
theIndexindex of a circle to be removed.

◆ Init()

void BRepMesh_CircleTool::Init ( const int )
inline

Initializes the tool.

Parameters
theReservedSizesize to be reserved for vector of circles.

◆ IsEmpty()

bool BRepMesh_CircleTool::IsEmpty ( ) const
inline

Returns true if cell filter contains no circle.

◆ MakeCircle()

static bool BRepMesh_CircleTool::MakeCircle ( const gp_XY & thePoint1,
const gp_XY & thePoint2,
const gp_XY & thePoint3,
gp_XY & theLocation,
double & theRadius )
static

Computes circle on three points.

Parameters
thePoint1first point.
thePoint2second point.
thePoint3third point.
[out]theLocationcenter of computed circle.
[out]theRadiusradius of computed circle.
Returns
FALSE in case of impossibility to build a circle on the given points, TRUE elsewhere.

◆ MocBind()

void BRepMesh_CircleTool::MocBind ( const int theIndex)

Binds implicit zero circle.

Parameters
theIndexindex a zero circle should be bound with.

◆ Select()

IMeshData::ListOfInteger & BRepMesh_CircleTool::Select ( const gp_XY & thePoint)

Select the circles shot by the given point.

Parameters
thePointbullet point.

◆ SetCellSize() [1/2]

void BRepMesh_CircleTool::SetCellSize ( const double theSize)
inline

Sets new size for cell filter.

Parameters
theSizecell size to be set for X and Y dimensions.

◆ SetCellSize() [2/2]

void BRepMesh_CircleTool::SetCellSize ( const double theSizeX,
const double theSizeY )
inline

Sets new size for cell filter.

Parameters
theSizeXcell size to be set for X dimension.
theSizeYcell size to be set for Y dimension.

◆ SetMinMaxSize()

void BRepMesh_CircleTool::SetMinMaxSize ( const gp_XY & theMin,
const gp_XY & theMax )
inline

Sets limits of inspection area.

Parameters
theMinbottom left corner of inspection area.
theMaxtop right corner of inspection area.

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