2008-03-07 12:45:34 +05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page create_curve_page Curve
|
|
|
|
|
|
|
|
To create a \b Curve in the <b>Main Menu</b> select <b>New Entity - >
|
|
|
|
Basic - > Curve</b>
|
|
|
|
|
|
|
|
\n There are three algorithms to create a \b Curve in the 3D space. Each
|
|
|
|
time you define it by a list of \b Points through which the curve
|
|
|
|
passes. The three <b>Curve Construction</b> menu choices correspond to three
|
|
|
|
possible types of curves: Polyline, Besier or B-spline (Interpolated).
|
|
|
|
\n The \b Result of each operation will be a GEOM_Object (edge).
|
|
|
|
|
|
|
|
\n <b>TUI Commands:</b>
|
|
|
|
<ul>
|
2011-03-21 17:43:51 +05:00
|
|
|
<li><em>geompy.MakePolyline(ListOfShapes,isClosed)</em></li>
|
|
|
|
<li><em>geompy.MakeBezier(ListOfShapes,isClosed)</em></li>
|
|
|
|
<li><em>geompy.MakeInterpol(ListOfShapes,isClosed,doReordering)</em></li>
|
2008-03-07 12:45:34 +05:00
|
|
|
</ul>
|
|
|
|
ListOfShape is a list of points through which the curve passes.
|
2011-03-21 17:43:51 +05:00
|
|
|
If isClosed is True, MakeBezier and MakeInterpol builds a closed edge,
|
|
|
|
MakePolyline builds a closed wire. If doReordering is True,
|
|
|
|
MakeInterpol does not follow the order of vertices but searches for the
|
|
|
|
closest vertex.
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
<b>Arguments:</b> Name + at least 2 points which will serve as nodes
|
|
|
|
on the curve.
|
2011-03-25 17:40:33 +05:00
|
|
|
\n<b>Advanced options</b> \ref preview_anchor "Preview"
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
\image html curve.png
|
2011-03-21 17:43:51 +05:00
|
|
|
\image html curve1.png
|
|
|
|
\image html curve2.png
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
<b>Examples:</b>
|
|
|
|
|
|
|
|
\image html polyline.png
|
|
|
|
<center>Polyline</center>
|
|
|
|
|
|
|
|
\image html bezier.png
|
|
|
|
<center>Bezier</center>
|
|
|
|
|
|
|
|
\image html interpol.png
|
|
|
|
<center>B-Spline</center>
|
|
|
|
|
|
|
|
Our <b>TUI Scripts</b> provide you with useful examples of creation of
|
|
|
|
\ref tui_creation_curve "Basic Geometric Objects".
|
|
|
|
|
2009-08-25 18:37:33 +06:00
|
|
|
*/
|