Open CASCADE Technology  7.3.0
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 Handle< NCollection_IncAllocator > &theAllocator)
 Constructor. More...
 
 BRepMesh_CircleTool (const Standard_Integer theReservedSize, const Handle< NCollection_IncAllocator > &theAllocator)
 Constructor. More...
 
void Init (const Standard_Integer)
 Initializes the tool. More...
 
void SetCellSize (const Standard_Real theSize)
 Sets new size for cell filter. More...
 
void SetCellSize (const Standard_Real theSizeX, const Standard_Real theSizeY)
 Sets new size for cell filter. More...
 
void SetMinMaxSize (const gp_XY &theMin, const gp_XY &theMax)
 Sets limits of inspection area. More...
 
void Bind (const Standard_Integer theIndex, const gp_Circ2d &theCircle)
 Binds the circle to the tool. More...
 
Standard_Boolean Bind (const Standard_Integer theIndex, const gp_XY &thePoint1, const gp_XY &thePoint2, const gp_XY &thePoint3)
 Computes circle on three points and bind it to the tool. More...
 
void MocBind (const Standard_Integer theIndex)
 Binds implicit zero circle. More...
 
void Delete (const Standard_Integer theIndex)
 Deletes a circle from the tool. More...
 
BRepMesh::ListOfIntegerSelect (const gp_XY &thePoint)
 Select the circles shot by the given point. More...
 

Static Public Member Functions

static Standard_Boolean MakeCircle (const gp_XY &thePoint1, const gp_XY &thePoint2, const gp_XY &thePoint3, gp_XY &theLocation, Standard_Real &theRadius)
 Computes circle on three points. More...
 

Detailed Description

Create sort and destroy the circles used in triangulation.

Constructor & Destructor Documentation

◆ BRepMesh_CircleTool() [1/2]

BRepMesh_CircleTool::BRepMesh_CircleTool ( const Handle< NCollection_IncAllocator > &  theAllocator)

Constructor.

Parameters
theAllocatormemory allocator to be used by internal structures.

◆ BRepMesh_CircleTool() [2/2]

BRepMesh_CircleTool::BRepMesh_CircleTool ( const Standard_Integer  theReservedSize,
const 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 Standard_Integer  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]

Standard_Boolean BRepMesh_CircleTool::Bind ( const Standard_Integer  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 Standard_Integer  theIndex)

Deletes a circle from the tool.

Parameters
theIndexindex of a circle to be removed.

◆ Init()

void BRepMesh_CircleTool::Init ( const Standard_Integer  )
inline

Initializes the tool.

Parameters
theReservedSizesize to be reserved for vector of circles.

◆ MakeCircle()

static Standard_Boolean BRepMesh_CircleTool::MakeCircle ( const gp_XY thePoint1,
const gp_XY thePoint2,
const gp_XY thePoint3,
gp_XY theLocation,
Standard_Real 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 Standard_Integer  theIndex)

Binds implicit zero circle.

Parameters
theIndexindex a zero circle should be bound with.

◆ Select()

BRepMesh::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 Standard_Real  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 Standard_Real  theSizeX,
const Standard_Real  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: