Functions | |
def | MakeArc |
Create an arc of circle, passing through three given points. More... | |
def | MakeArcCenter |
Create an arc of circle from a center and 2 points. More... | |
def | MakeArcOfEllipse |
Create an arc of ellipse, of center and two points. More... | |
def | MakeCircle |
Create a circle with given center, normal vector and radius. More... | |
def | MakeCircleR |
Create a circle with given radius. More... | |
def | MakeCircleThreePnt |
Create a circle, passing through three given points. More... | |
def | 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. More... | |
def | MakeEllipse |
Create an ellipse with given center, normal vector and radiuses. More... | |
def | MakeEllipseRR |
Create an ellipse with given radiuses. More... | |
def | MakePolyline |
Create a polyline on the set of points. More... | |
def | MakeBezier |
Create bezier curve on the set of points. More... | |
def | MakeInterpol |
Create B-Spline curve on the set of points. More... | |
def | MakeInterpolWithTangents |
Create B-Spline curve on the set of points. More... | |
def | MakeCurveParametric |
Creates a curve using the parametric definition of the basic points. More... | |
def | MakeIsoline |
Create an isoline curve on a face. More... | |
def MakeArc | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3, | |||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeArcCenter | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3, | |||
theSense = False , |
|||
theName = None |
|||
) |
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 |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeArcOfEllipse | ( | self, | |
theCenter, | |||
thePnt1, | |||
thePnt2, | |||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeCircle | ( | self, | |
thePnt, | |||
theVec, | |||
theR, | |||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeCircleR | ( | self, | |
theR, | |||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeCircleThreePnt | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3, | |||
theName = None |
|||
) |
Create a circle, passing through three given points.
thePnt1,thePnt2,thePnt3 | Points, defining the circle. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeCircleCenter2Pnt | ( | self, | |
thePnt1, | |||
thePnt2, | |||
thePnt3, | |||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeEllipse | ( | self, | |
thePnt, | |||
theVec, | |||
theRMajor, | |||
theRMinor, | |||
theVecMaj = None , |
|||
theName = 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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeEllipseRR | ( | self, | |
theRMajor, | |||
theRMinor, | |||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakePolyline | ( | self, | |
thePoints, | |||
theIsClosed = False , |
|||
theName = None |
|||
) |
Create a polyline on the set of points.
thePoints | Sequence of points for the polyline. |
theIsClosed | If True, build a closed wire. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeBezier | ( | self, | |
thePoints, | |||
theIsClosed = False , |
|||
theName = None |
|||
) |
Create bezier curve on the set of points.
thePoints | Sequence of points for the bezier curve. |
theIsClosed | If True, build a closed curve. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeInterpol | ( | self, | |
thePoints, | |||
theIsClosed = False , |
|||
theDoReordering = False , |
|||
theName = None |
|||
) |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeInterpolWithTangents | ( | self, | |
thePoints, | |||
theFirstVec, | |||
theLastVec, | |||
theName = None |
|||
) |
Create B-Spline curve on the set of points.
thePoints | Sequence of points for the B-Spline curve. |
theFirstVec | Vector object, defining the curve direction at its first point. |
theLastVec | Vector object, defining the curve direction at its last point. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeCurveParametric(), geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().
def MakeCurveParametric | ( | self, | |
thexExpr, | |||
theyExpr, | |||
thezExpr, | |||
theParamMin, | |||
theParamMax, | |||
theParamStep, | |||
theCurveType, | |||
theNewMethod = False , |
|||
theName = None |
|||
) |
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, one of GEOM.Polyline, GEOM.Bezier, GEOM.Interpolation. |
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. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeIsoline | ( | self, | |
theFace, | |||
IsUIsoline, | |||
theParameter, | |||
theName = None |
|||
) |
Create an isoline curve on a face.
theFace | the face for which an isoline is created. |
IsUIsoline | True for U-isoline creation; False for V-isoline creation. |
theParameter | the U parameter for U-isoline or V parameter for V-isoline. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().