Version: 6.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Curve

To create a Curve in the Main Menu select New Entity - > Basic - > Curve

There are three Curve Construction menu choices corresponding to three possible types of curves: Polyline, Besier or B-spline (Interpolated). The curve is defined by a list of Points through which it passes.


There are two ways to define these Points:

  • By Selection manual picking of the points in the Object Browser or 3D Viewer.
  • Analytical parametric definition of the points through python expressions.


The Result of each operation will be a GEOM_Object (edge).

Polyline

polyline.png

Polyline or polygonal chain is a connected series of line segments. It can be defined by the following parameters:

curve2.png
  • Points at least 2 points which will serve as nodes on the curve.
  • Build a closed wire checkbox allows creating the curve as closed wire.


TUI Command: geompy.MakePolyline(ListOfShapes,isClosed)

Bezier

bezier.png

Bezier curve is a curve completely contained in a convex hull of its control points. It can be defined by the following parameters:

curve3.png
  • Points at least 2 points used to approximate the curve.
  • Build a closed edge checkbox allows creating the curve as closed edge.


TUI Command: geompy.MakeBezier(ListOfShapes,isClosed)

B-spline

interpol.png

B-spline is a union of curve segments defined at each node span. It can be defined by the following parameters:

curve4.png
  • Points at least 2 points which will serve as nodes on the curve.
  • Build a closed edge checkbox allows creating the curve as closed edge.
  • If Reorder vertices taking into account distances is checked, the interpolation algorithm does not follow the order of vertices but searches for the closest vertex.


TUI Command: geompy.MakeInterpol(ListOfShapes,isClosed,doReordering)

Analytical Definition

The input parameters for analytical definition are common for all types of curves.

curve1.png
  • X(t)equation, Y(t)equation, Z(t)equation are python expressions for X, Y and Z coordinates of the basic points of the curve.
  • Min t, Max t are minimum and maximum values of the parameter t.
  • Step is the number of steps of the parameter t.


TUI Command: geompy.MakeCurveParametric(XExpr, YExpt, ZExpt, tMin, tMax, nbSteps, curveType, True)


Advanced options Preview

Our TUI Scripts provide you with useful examples of creation of Basic Geometric Objects.

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