SHAPER  9.12.0
GeomAlgoAPI_PointBuilder Class Reference

Allows to create vertex-shapes by different parameters. More...

Static Public Member Functions

static std::shared_ptr< GeomAPI_Vertexvertex (const std::shared_ptr< GeomAPI_Pnt > thePoint)
 Creates a vertex by point. More...
 
static std::shared_ptr< GeomAPI_Vertexvertex (const double theX, const double theY, const double theZ)
 Creates a vertex by point coordinates. More...
 
static std::shared_ptr< GeomAPI_VertexvertexOnEdge (const std::shared_ptr< GeomAPI_Edge > theEdge, const double theValue, const bool theIsPercent=false, const bool theIsReverse=false)
 Creates vertex by edge and distance on it. More...
 
static std::shared_ptr< GeomAPI_VertexvertexByProjection (const std::shared_ptr< GeomAPI_Vertex > theVertex, const std::shared_ptr< GeomAPI_Edge > theEdge)
 Creates vertex by projection another vertex on edge. More...
 
static std::shared_ptr< GeomAPI_VertexvertexByProjection (const std::shared_ptr< GeomAPI_Vertex > theVertex, const std::shared_ptr< GeomAPI_Face > theFace)
 Creates vertex by projection another vertex on plane. More...
 
static std::shared_ptr< GeomAPI_VertexvertexByIntersection (const std::shared_ptr< GeomAPI_Edge > theEdge1, const std::shared_ptr< GeomAPI_Edge > theEdge2)
 Creates vertex by intersection two coplanar lines. More...
 
static std::shared_ptr< GeomAPI_Pntpoint (const std::shared_ptr< GeomAPI_Shape > theVertex)
 Return point by shape vertex. More...
 

Detailed Description

Allows to create vertex-shapes by different parameters.

Member Function Documentation

◆ vertex() [1/2]

std::shared_ptr< GeomAPI_Vertex > GeomAlgoAPI_PointBuilder::vertex ( const std::shared_ptr< GeomAPI_Pnt thePoint)
static

Creates a vertex by point.

◆ vertex() [2/2]

std::shared_ptr< GeomAPI_Vertex > GeomAlgoAPI_PointBuilder::vertex ( const double  theX,
const double  theY,
const double  theZ 
)
static

Creates a vertex by point coordinates.

◆ vertexOnEdge()

std::shared_ptr< GeomAPI_Vertex > GeomAlgoAPI_PointBuilder::vertexOnEdge ( const std::shared_ptr< GeomAPI_Edge theEdge,
const double  theValue,
const bool  theIsPercent = false,
const bool  theIsReverse = false 
)
static

Creates vertex by edge and distance on it.

Parameters
[in]theEdgeedge.
[in]theValuedistance value.
[in]theIsPercentif true theValue will be treated as a percentage of theEdge total length.
[in]theIsReverseif true the distance will be measured from the edge end point.
Returns
created vertex.

◆ vertexByProjection() [1/2]

std::shared_ptr< GeomAPI_Vertex > GeomAlgoAPI_PointBuilder::vertexByProjection ( const std::shared_ptr< GeomAPI_Vertex theVertex,
const std::shared_ptr< GeomAPI_Edge theEdge 
)
static

Creates vertex by projection another vertex on edge.

Parameters
[in]theVertexvertex to project.
[in]theEdgeedge for projection.
Returns
created vertex.

◆ vertexByProjection() [2/2]

std::shared_ptr< GeomAPI_Vertex > GeomAlgoAPI_PointBuilder::vertexByProjection ( const std::shared_ptr< GeomAPI_Vertex theVertex,
const std::shared_ptr< GeomAPI_Face theFace 
)
static

Creates vertex by projection another vertex on plane.

Parameters
[in]theVertexvertex to project.
[in]theFaceface for projection. Should be planar.
Returns
created vertex.

◆ vertexByIntersection()

std::shared_ptr< GeomAPI_Vertex > GeomAlgoAPI_PointBuilder::vertexByIntersection ( const std::shared_ptr< GeomAPI_Edge theEdge1,
const std::shared_ptr< GeomAPI_Edge theEdge2 
)
static

Creates vertex by intersection two coplanar lines.

Parameters
[in]theEdge1first linear edge.
[in]theEdge2second linear edge.
Returns
created vertex.

◆ point()

std::shared_ptr< GeomAPI_Pnt > GeomAlgoAPI_PointBuilder::point ( const std::shared_ptr< GeomAPI_Shape theVertex)
static

Return point by shape vertex.