Version: 9.16.0
Home
Loading...
Searching...
No Matches

Functions

 MakeArc (self, thePnt1, thePnt2, thePnt3, theName=None)
 Create an arc of circle, passing through three given points.
 
 MakeArcCenter (self, thePnt1, thePnt2, thePnt3, theSense=False, theName=None)
 Create an arc of circle from a center and 2 points.
 
 MakeArcOfEllipse (self, theCenter, thePnt1, thePnt2, theName=None)
 Create an arc of ellipse, of center and two points.
 
 MakeCircle (self, thePnt, theVec, theR, theName=None)
 Create a circle with given center, normal vector and radius.
 
 MakeCircleR (self, theR, theName=None)
 Create a circle with given radius.
 
 MakeCircleThreePnt (self, thePnt1, thePnt2, thePnt3, theName=None)
 Create a circle, passing through three given points.
 
 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.
 
 MakeEllipse (self, thePnt, theVec, theRMajor, theRMinor, theVecMaj=None, theName=None)
 Create an ellipse with given center, normal vector and radiuses.
 
 MakeEllipseRR (self, theRMajor, theRMinor, theName=None)
 Create an ellipse with given radiuses.
 
 MakePolyline (self, thePoints, theIsClosed=False, theName=None)
 Create a polyline on the set of points.
 
 MakeBezier (self, thePoints, theIsClosed=False, theName=None)
 Create bezier curve on the set of points.
 
 MakeInterpol (self, thePoints, theIsClosed=False, theDoReordering=False, theName=None)
 Create B-Spline curve on the set of points.
 
 MakeInterpolWithTangents (self, thePoints, theFirstVec, theLastVec, theName=None)
 Create B-Spline curve on the set of points.
 
 MakeCurveParametric (self, thexExpr, theyExpr, thezExpr, theParamMin, theParamMax, theParamStep, theCurveType, theNewMethod=False, theName=None)
 Creates a curve using the parametric definition of the basic points.
 
 MakeIsoline (self, theFace, IsUIsoline, theParameter, theName=None)
 Create an isoline curve on a face.
 

Detailed Description

Function Documentation

◆ MakeArc()

MakeArc (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theName = None 
)

Create an arc of circle, passing through three given points.

Parameters
thePnt1Start point of the arc.
thePnt2Middle point of the arc.
thePnt3End point of the arc.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created arc.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeArc(), and geomBuilder.RaiseIfFailed().

◆ MakeArcCenter()

MakeArcCenter (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theSense = False,
  theName = None 
)

Create an arc of circle from a center and 2 points.

Parameters
thePnt1Center of the arc
thePnt2Start point of the arc. (Gives also the radius of the arc)
thePnt3End point of the arc (Gives also a direction)
theSenseOrientation of the arc
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created arc.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeArcCenter(), and geomBuilder.RaiseIfFailed().

◆ MakeArcOfEllipse()

MakeArcOfEllipse (   self,
  theCenter,
  thePnt1,
  thePnt2,
  theName = None 
)

Create an arc of ellipse, of center and two points.

Parameters
theCenterCenter of the arc.
thePnt1defines major radius of the arc by distance from Pnt1 to Pnt2.
thePnt2defines plane of ellipse and minor radius as distance from Pnt3 to line from Pnt1 to Pnt2.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created arc.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeArcOfEllipse(), and geomBuilder.RaiseIfFailed().

◆ MakeCircle()

MakeCircle (   self,
  thePnt,
  theVec,
  theR,
  theName = None 
)

Create a circle with given center, normal vector and radius.

Parameters
thePntCircle center.
theVecVector, normal to the plane of the circle.
theRCircle radius.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created circle.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeCircleR()

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

Parameters
theRCircle radius.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created circle.

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, and geomBuilder.RaiseIfFailed().

◆ MakeCircleThreePnt()

MakeCircleThreePnt (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theName = None 
)

Create a circle, passing through three given points.

Parameters
thePnt1,thePnt2,thePnt3Points, defining the circle.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created circle.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeCircleThreePnt(), and geomBuilder.RaiseIfFailed().

◆ MakeCircleCenter2Pnt()

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.

Parameters
thePnt1,thePnt2,thePnt3Points, defining the circle.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created circle.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeCircleCenter2Pnt(), and geomBuilder.RaiseIfFailed().

◆ MakeEllipse()

MakeEllipse (   self,
  thePnt,
  theVec,
  theRMajor,
  theRMinor,
  theVecMaj = None,
  theName = None 
)

Create an ellipse with given center, normal vector and radiuses.

Parameters
thePntEllipse center.
theVecVector, normal to the plane of the ellipse.
theRMajorMajor ellipse radius.
theRMinorMinor ellipse radius.
theVecMajVector, direction of the ellipse's main axis.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created ellipse.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeEllipse(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeEllipseRR()

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

Parameters
theRMajorMajor ellipse radius.
theRMinorMinor ellipse radius.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created ellipse.

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeEllipse(), and geomBuilder.RaiseIfFailed().

◆ MakePolyline()

MakePolyline (   self,
  thePoints,
  theIsClosed = False,
  theName = None 
)

Create a polyline on the set of points.

Parameters
thePointsSequence of points for the polyline.
theIsClosedIf True, build a closed wire.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created polyline.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakePolyline(), and geomBuilder.RaiseIfFailed().

◆ MakeBezier()

MakeBezier (   self,
  thePoints,
  theIsClosed = False,
  theName = None 
)

Create bezier curve on the set of points.

Parameters
thePointsSequence of points for the bezier curve.
theIsClosedIf True, build a closed curve.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created bezier curve.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, and geomBuilder.RaiseIfFailed().

◆ MakeInterpol()

MakeInterpol (   self,
  thePoints,
  theIsClosed = False,
  theDoReordering = False,
  theName = None 
)

Create B-Spline curve on the set of points.

Parameters
thePointsSequence of points for the B-Spline curve.
theIsClosedIf True, build a closed curve.
theDoReorderingIf TRUE, the algo does not follow the order of thePoints but searches for the closest vertex.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created B-Spline curve.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, and geomBuilder.RaiseIfFailed().

◆ MakeInterpolWithTangents()

MakeInterpolWithTangents (   self,
  thePoints,
  theFirstVec,
  theLastVec,
  theName = None 
)

Create B-Spline curve on the set of points.

Parameters
thePointsSequence of points for the B-Spline curve.
theFirstVecVector object, defining the curve direction at its first point.
theLastVecVector object, defining the curve direction at its last point.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created B-Spline curve.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, and geomBuilder.RaiseIfFailed().

◆ MakeCurveParametric()

MakeCurveParametric (   self,
  thexExpr,
  theyExpr,
  thezExpr,
  theParamMin,
  theParamMax,
  theParamStep,
  theCurveType,
  theNewMethod = False,
  theName = None 
)

Creates a curve using the parametric definition of the basic points.

Parameters
thexExprparametric equation of the coordinates X.
theyExprparametric equation of the coordinates Y.
thezExprparametric equation of the coordinates Z.
theParamMinthe minimal value of the parameter.
theParamMaxthe maximum value of the parameter.
theParamStepthe number of steps if theNewMethod = True, else step value of the parameter.
theCurveTypethe type of the curve, one of GEOM.Polyline, GEOM.Bezier, GEOM.Interpolation.
theNewMethodflag for switching to the new method if the flag is set to false a deprecated method is used which can lead to a bug.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created curve.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeCurveParametric(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeIsoline()

MakeIsoline (   self,
  theFace,
  IsUIsoline,
  theParameter,
  theName = None 
)

Create an isoline curve on a face.

Parameters
theFacethe face for which an isoline is created.
IsUIsolineTrue for U-isoline creation; False for V-isoline creation.
theParameterthe U parameter for U-isoline or V parameter for V-isoline.
theNameObject 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.
Returns
New GEOM.GEOM_Object, containing the created isoline edge or a compound of edges.

Example

References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.MakeIsoline(), and geomBuilder.RaiseIfFailed().