Functions | |
def | geompy.MakeArc |
Create an arc of circle, passing through three given points. | |
def | geompy.MakeArcCenter |
Create an arc of circle from a center and 2 points. | |
def | geompy.MakeArcOfEllipse |
Create an arc of ellipse, of center and two points. | |
def | geompy.MakeCircle |
Create a circle with given center, normal vector and radius. | |
def | geompy.MakeCircleR |
Create a circle with given radius. | |
def | geompy.MakeCircleThreePnt |
Create a circle, passing through three given points. | |
def | geompy.MakeCircleCenter2Pnt |
Create a circle, with given point1 as center, passing through the point2 as radius and laying in the plane, defined by all three given points. | |
def | geompy.MakeEllipse |
Create an ellipse with given center, normal vector and radiuses. | |
def | geompy.MakeEllipseRR |
Create an ellipse with given radiuses. | |
def | geompy.MakePolyline |
Create a polyline on the set of points. | |
def | geompy.MakeBezier |
Create bezier curve on the set of points. | |
def | geompy.MakeInterpol |
Create B-Spline curve on the set of points. | |
def | geompy.MakeCurveParametric |
Creates a curve using the parametric definition of the basic points. |
def geompy.MakeArc | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3 | |||
) |
Create an arc of circle, passing through three given points.
thePnt1 | Start point of the arc. |
thePnt2 | Middle point of the arc. |
thePnt3 | End point of the arc. |
References geompy.RaiseIfFailed().
def geompy.MakeArcCenter | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3, | |||
theSense = False |
|||
) |
Create an arc of circle from a center and 2 points.
thePnt1 | Center of the arc |
thePnt2 | Start point of the arc. (Gives also the radius of the arc) |
thePnt3 | End point of the arc (Gives also a direction) |
theSense | Orientation of the arc |
References geompy.RaiseIfFailed().
def geompy.MakeArcOfEllipse | ( | self, | |
theCenter, | |||
thePnt1, | |||
thePnt2 | |||
) |
Create an arc of ellipse, of center and two points.
theCenter | Center of the arc. |
thePnt1 | defines major radius of the arc by distance from Pnt1 to Pnt2. |
thePnt2 | defines plane of ellipse and minor radius as distance from Pnt3 to line from Pnt1 to Pnt2. |
References geompy.RaiseIfFailed().
def geompy.MakeCircle | ( | self, | |
thePnt, | |||
theVec, | |||
theR | |||
) |
Create a circle with given center, normal vector and radius.
thePnt | Circle center. |
theVec | Vector, normal to the plane of the circle. |
theR | Circle radius. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakeCircleR | ( | self, | |
theR | |||
) |
Create a circle with given radius.
Center of the circle will be in the origin of global coordinate system and normal vector will be codirected with Z axis
theR | Circle radius. |
References geompy.RaiseIfFailed().
def geompy.MakeCircleThreePnt | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3 | |||
) |
Create a circle, passing through three given points.
thePnt1,thePnt2,thePnt3 | Points, defining the circle. |
References geompy.RaiseIfFailed().
def geompy.MakeCircleCenter2Pnt | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3 | |||
) |
Create a circle, with given point1 as center, passing through the point2 as radius and laying in the plane, defined by all three given points.
thePnt1,thePnt2,thePnt3 | Points, defining the circle. |
References geompy.RaiseIfFailed().
def geompy.MakeEllipse | ( | self, | |
thePnt, | |||
theVec, | |||
theRMajor, | |||
theRMinor, | |||
theVecMaj = None |
|||
) |
Create an ellipse with given center, normal vector and radiuses.
thePnt | Ellipse center. |
theVec | Vector, normal to the plane of the ellipse. |
theRMajor | Major ellipse radius. |
theRMinor | Minor ellipse radius. |
theVecMaj | Vector, direction of the ellipse's main axis. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakeEllipseRR | ( | self, | |
theRMajor, | |||
theRMinor | |||
) |
Create an ellipse with given radiuses.
Center of the ellipse will be in the origin of global coordinate system and normal vector will be codirected with Z axis
theRMajor | Major ellipse radius. |
theRMinor | Minor ellipse radius. |
References geompy.RaiseIfFailed().
def geompy.MakePolyline | ( | self, | |
thePoints, | |||
theIsClosed = False |
|||
) |
Create a polyline on the set of points.
thePoints | Sequence of points for the polyline. |
theIsClosed | If True, build a closed wire. |
References geompy.RaiseIfFailed().
def geompy.MakeBezier | ( | self, | |
thePoints, | |||
theIsClosed = False |
|||
) |
Create bezier curve on the set of points.
thePoints | Sequence of points for the bezier curve. |
theIsClosed | If True, build a closed curve. |
References geompy.RaiseIfFailed().
def geompy.MakeInterpol | ( | self, | |
thePoints, | |||
theIsClosed = False , |
|||
theDoReordering = False |
|||
) |
Create B-Spline curve on the set of points.
thePoints | Sequence of points for the B-Spline curve. |
theIsClosed | If True, build a closed curve. |
theDoReordering | If TRUE, the algo does not follow the order of thePoints but searches for the closest vertex. |
References geompy.MakeCurveParametric(), and geompy.RaiseIfFailed().
def geompy.MakeCurveParametric | ( | self, | |
thexExpr, | |||
theyExpr, | |||
thezExpr, | |||
theParamMin, | |||
theParamMax, | |||
theParamStep, | |||
theCurveType, | |||
theNewMethod = False |
|||
) |
Creates a curve using the parametric definition of the basic points.
thexExpr | parametric equation of the coordinates X. |
theyExpr | parametric equation of the coordinates Y. |
thezExpr | parametric equation of the coordinates Z. |
theParamMin | the minimal value of the parameter. |
theParamMax | the maximum value of the parameter. |
theParamStep | the number of steps if theNewMethod = True, else step value of the parameter. |
theCurveType | the type of the curve. |
theNewMethod | flag for switching to the new method if the flag is set to false a deprecated method is used which can lead to a bug. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().