SALOME documentation central

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.

Function Documentation

def geompy.MakeArc (   self,
  thePnt1,
  thePnt2,
  thePnt3 
)

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

Parameters:
thePnt1 Start point of the arc.
thePnt2 Middle point of the arc.
thePnt3 End point of the arc.
Returns:
New GEOM_Object, containing the created arc.

Example

def geompy.MakeArcCenter (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theSense = False 
)

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

Parameters:
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
Returns:
New GEOM_Object, containing the created arc.

Example

def geompy.MakeArcOfEllipse (   self,
  theCenter,
  thePnt1,
  thePnt2 
)

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

Parameters:
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.
Returns:
New GEOM_Object, containing the created arc.

Example

def geompy.MakeCircle (   self,
  thePnt,
  theVec,
  theR 
)

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

Parameters:
thePnt Circle center.
theVec Vector, normal to the plane of the circle.
theR Circle radius.
Returns:
New GEOM_Object, containing the created circle.

Example

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

Parameters:
theR Circle radius.
Returns:
New GEOM_Object, containing the created circle.
def geompy.MakeCircleThreePnt (   self,
  thePnt1,
  thePnt2,
  thePnt3 
)

Create a circle, passing through three given points.

Parameters:
thePnt1,thePnt2,thePnt3 Points, defining the circle.
Returns:
New GEOM_Object, containing the created circle.

Example

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.

Parameters:
thePnt1,thePnt2,thePnt3 Points, defining the circle.
Returns:
New GEOM_Object, containing the created circle.

Example

def geompy.MakeEllipse (   self,
  thePnt,
  theVec,
  theRMajor,
  theRMinor,
  theVecMaj = None 
)

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

Parameters:
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.
Returns:
New GEOM_Object, containing the created ellipse.

Example

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

Parameters:
theRMajor Major ellipse radius.
theRMinor Minor ellipse radius.
Returns:
New GEOM_Object, containing the created ellipse.
def geompy.MakePolyline (   self,
  thePoints 
)

Create a polyline on the set of points.

Parameters:
thePoints Sequence of points for the polyline.
Returns:
New GEOM_Object, containing the created polyline.

Example

def geompy.MakeBezier (   self,
  thePoints 
)

Create bezier curve on the set of points.

Parameters:
thePoints Sequence of points for the bezier curve.
Returns:
New GEOM_Object, containing the created bezier curve.

Example

def geompy.MakeInterpol (   self,
  thePoints,
  theIsClosed = False 
)

Create B-Spline curve on the set of points.

Parameters:
thePoints Sequence of points for the B-Spline curve.
theIsClosed If True, build a closed curve.
Returns:
New GEOM_Object, containing the created B-Spline curve.

Example

 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 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