Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages

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...
 

Detailed Description

Function Documentation

def 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.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.

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.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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.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

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, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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.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.

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.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.

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.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

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.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def 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, 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.

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.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def 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.ManageTransactions(), and geomBuilder.RaiseIfFailed().