SHAPER  9.12.0
GeomAlgoAPI_EdgeBuilder Class Reference

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

Static Public Member Functions

static std::shared_ptr< GeomAPI_Edgeline (std::shared_ptr< GeomAPI_Pnt > theStart, std::shared_ptr< GeomAPI_Pnt > theEnd)
 Creates linear edge by two points. More...
 
static std::shared_ptr< GeomAPI_Edgeline (double theDX, double theDY, double theDZ)
 Creates linear edge by three dimensions. More...
 
static std::shared_ptr< GeomAPI_Edgeline (const std::shared_ptr< GeomAPI_Lin > theLin)
 Creates linear edge by GeomAPI_Lin. More...
 
static std::shared_ptr< GeomAPI_EdgecylinderAxis (std::shared_ptr< GeomAPI_Shape > theCylindricalFace)
 Creates edge - axis of the given cylindrical face. The result axis edge is infinite. More...
 
static std::shared_ptr< GeomAPI_EdgelineCircle (std::shared_ptr< GeomAPI_Pnt > theCenter, std::shared_ptr< GeomAPI_Dir > theNormal, double theRadius)
 Creates linear edge in a form of a circle by a point and a circle radius. More...
 
static std::shared_ptr< GeomAPI_EdgelineCircle (std::shared_ptr< GeomAPI_Circ > theCircle)
 Creates linear edge in a form of a circle by GeomAPI_Circle. More...
 
static std::shared_ptr< GeomAPI_EdgelineCircleArc (std::shared_ptr< GeomAPI_Pnt > theCenter, std::shared_ptr< GeomAPI_Pnt > theStartPoint, std::shared_ptr< GeomAPI_Pnt > theEndPoint, std::shared_ptr< GeomAPI_Dir > theNormal)
 Creates linear edge in a form of a circle arc by a three points. More...
 
static std::shared_ptr< GeomAPI_Edgeellipse (const std::shared_ptr< GeomAPI_Pnt > &theCenter, const std::shared_ptr< GeomAPI_Dir > &theNormal, const std::shared_ptr< GeomAPI_Dir > &theMajorAxis, const double theMajorRadius, const double theMinorRadius)
 Creates elliptic edge. More...
 
static std::shared_ptr< GeomAPI_EdgeellipticArc (const std::shared_ptr< GeomAPI_Pnt > &theCenter, const std::shared_ptr< GeomAPI_Dir > &theNormal, const std::shared_ptr< GeomAPI_Dir > &theMajorAxis, const double theMajorRadius, const double theMinorRadius, const std::shared_ptr< GeomAPI_Pnt > &theStart, const std::shared_ptr< GeomAPI_Pnt > &theEnd)
 Creates elliptic edge. More...
 
static GeomEdgePtr bsplineOnPlane (const std::shared_ptr< GeomAPI_Ax3 > &thePlane, const std::list< std::shared_ptr< GeomAPI_Pnt2d > > &thePoles, const std::list< double > &theWeights, const std::list< double > &theKnots, const std::list< int > &theMults, const int theDegree, const bool thePeriodic)
 Creates planar B-spline edge. More...
 
static GeomEdgePtr bsplineOnPlane (const std::shared_ptr< GeomAPI_Ax3 > &thePlane, const std::shared_ptr< GeomAPI_BSpline2d > &theCurve)
 Creates planar B-spline edge. More...
 

Detailed Description

Allows to create face-shapes by different parameters.

Member Function Documentation

◆ line() [1/3]

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::line ( std::shared_ptr< GeomAPI_Pnt theStart,
std::shared_ptr< GeomAPI_Pnt theEnd 
)
static

Creates linear edge by two points.

Parameters
theStarta first point of an edge
theEndan end point of an edge

◆ line() [2/3]

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::line ( double  theDX,
double  theDY,
double  theDZ 
)
static

Creates linear edge by three dimensions.

Parameters
theXthe X dimension
theYthe Y dimension
theZthe Z dimension

◆ line() [3/3]

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::line ( const std::shared_ptr< GeomAPI_Lin theLin)
static

Creates linear edge by GeomAPI_Lin.

Parameters
theLinline.

◆ cylinderAxis()

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::cylinderAxis ( std::shared_ptr< GeomAPI_Shape theCylindricalFace)
static

Creates edge - axis of the given cylindrical face. The result axis edge is infinite.

◆ lineCircle() [1/2]

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::lineCircle ( std::shared_ptr< GeomAPI_Pnt theCenter,
std::shared_ptr< GeomAPI_Dir theNormal,
double  theRadius 
)
static

Creates linear edge in a form of a circle by a point and a circle radius.

◆ lineCircle() [2/2]

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::lineCircle ( std::shared_ptr< GeomAPI_Circ theCircle)
static

Creates linear edge in a form of a circle by GeomAPI_Circle.

◆ lineCircleArc()

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::lineCircleArc ( std::shared_ptr< GeomAPI_Pnt theCenter,
std::shared_ptr< GeomAPI_Pnt theStartPoint,
std::shared_ptr< GeomAPI_Pnt theEndPoint,
std::shared_ptr< GeomAPI_Dir theNormal 
)
static

Creates linear edge in a form of a circle arc by a three points.

OCCT creates an edge on a circle with empty radius, but visualization is not able to process it

◆ ellipse()

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::ellipse ( const std::shared_ptr< GeomAPI_Pnt > &  theCenter,
const std::shared_ptr< GeomAPI_Dir > &  theNormal,
const std::shared_ptr< GeomAPI_Dir > &  theMajorAxis,
const double  theMajorRadius,
const double  theMinorRadius 
)
static

Creates elliptic edge.

◆ ellipticArc()

std::shared_ptr< GeomAPI_Edge > GeomAlgoAPI_EdgeBuilder::ellipticArc ( const std::shared_ptr< GeomAPI_Pnt > &  theCenter,
const std::shared_ptr< GeomAPI_Dir > &  theNormal,
const std::shared_ptr< GeomAPI_Dir > &  theMajorAxis,
const double  theMajorRadius,
const double  theMinorRadius,
const std::shared_ptr< GeomAPI_Pnt > &  theStart,
const std::shared_ptr< GeomAPI_Pnt > &  theEnd 
)
static

Creates elliptic edge.

◆ bsplineOnPlane() [1/2]

GeomEdgePtr GeomAlgoAPI_EdgeBuilder::bsplineOnPlane ( const std::shared_ptr< GeomAPI_Ax3 > &  thePlane,
const std::list< std::shared_ptr< GeomAPI_Pnt2d > > &  thePoles,
const std::list< double > &  theWeights,
const std::list< double > &  theKnots,
const std::list< int > &  theMults,
const int  theDegree,
const bool  thePeriodic 
)
static

Creates planar B-spline edge.

◆ bsplineOnPlane() [2/2]

GeomEdgePtr GeomAlgoAPI_EdgeBuilder::bsplineOnPlane ( const std::shared_ptr< GeomAPI_Ax3 > &  thePlane,
const std::shared_ptr< GeomAPI_BSpline2d > &  theCurve 
)
static

Creates planar B-spline edge.