Version: 6.3.1
Functions

Creating Curves

Creating Basic Geometric Objects

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.

Function Documentation

def geompy.MakeArc (   self,
  thePnt1,
  thePnt2,
  thePnt3 
)
Parameters:
thePnt1Start point of the arc.
thePnt2Middle point of the arc.
thePnt3End point of the arc.
Returns:
New GEOM_Object, containing the created arc.

Example

def geompy.MakeArcCenter (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theSense = False 
)
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
Returns:
New GEOM_Object, containing the created arc.

Example

def geompy.MakeArcOfEllipse (   self,
  theCenter,
  thePnt1,
  thePnt2 
)
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.
Returns:
New GEOM_Object, containing the created arc.

Example

def geompy.MakeCircle (   self,
  thePnt,
  theVec,
  theR 
)
Parameters:
thePntCircle center.
theVecVector, normal to the plane of the circle.
theRCircle radius.
Returns:
New GEOM_Object, containing the created circle.

Example

def geompy.MakeCircleR (   self,
  theR 
)

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.
Returns:
New GEOM_Object, containing the created circle.
def geompy.MakeCircleThreePnt (   self,
  thePnt1,
  thePnt2,
  thePnt3 
)
Parameters:
thePnt1,thePnt2,thePnt3Points, defining the circle.
Returns:
New GEOM_Object, containing the created circle.

Example

def geompy.MakeCircleCenter2Pnt (   self,
  thePnt1,
  thePnt2,
  thePnt3 
)
Parameters:
thePnt1,thePnt2,thePnt3Points, defining the circle.
Returns:
New GEOM_Object, containing the created circle.

Example

def geompy.MakeEllipse (   self,
  thePnt,
  theVec,
  theRMajor,
  theRMinor,
  theVecMaj = None 
)
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.
Returns:
New GEOM_Object, containing the created ellipse.

Example

def geompy.MakeEllipseRR (   self,
  theRMajor,
  theRMinor 
)

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.
Returns:
New GEOM_Object, containing the created ellipse.
def geompy.MakePolyline (   self,
  thePoints,
  theIsClosed = False 
)
Parameters:
thePointsSequence of points for the polyline.
theIsClosedIf True, build a closed wire.
Returns:
New GEOM_Object, containing the created polyline.

Example

def geompy.MakeBezier (   self,
  thePoints,
  theIsClosed = False 
)
Parameters:
thePointsSequence of points for the bezier curve.
theIsClosedIf True, build a closed curve.
Returns:
New GEOM_Object, containing the created bezier curve.

Example

def geompy.MakeInterpol (   self,
  thePoints,
  theIsClosed = False,
  theDoReordering = False 
)
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.
Returns:
New GEOM_Object, containing the created B-Spline curve.

Example

def geompy.MakeCurveParametric (   self,
  thexExpr,
  theyExpr,
  thezExpr,
  theParamMin,
  theParamMax,
  theParamStep,
  theCurveType 
)
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 step of the parameter.
theCurveTypethe type of the curve.
Returns:
New GEOM_Object, containing the created curve.

Example

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS