-
Notifications
You must be signed in to change notification settings - Fork 18
pytha.create_polyline_ex
daniel-flassig edited this page May 7, 2020
·
10 revisions
Creates a block (mathematically a cuboid) in PYTHA as new part.
Similar to the Faces -> Polygon function in the PYTHA user interface.
pytha.create_polyline_ex(type, points [,segments, [,origin [,options]]]) | Parameter | Type | Description |
|---|---|---|
type |
string |
"open" or "closed" indicates whether the polyline is closed |
points |
{{u,v [,w]}, ...} |
Coordinates of the points |
segments |
{segment_1, segment_2, ...} |
Optional: specification of the segments, where each segment may be a table to indicate the following parameters: |
segment.angle |
number |
Angle of the arc, positive for counter-clockwise arcs |
segment.radius |
number |
Radius of the arc (if the radius is given, orientation and select_arc should be used to specify the arc uniquely) |
segment.orientation |
"cw" or "ccw"
|
When radius is specified: clockwise or counter-clockwise orientation |
segment.select_arc |
"small", "large"
|
When radius is specified: selection of the small or large arc with that radius and orientation |
segment.bulge |
number |
Maximum distance between the secant and the arc, positive for counter-clockwise arcs |
origin |
{x,y,z} | Optional: offset for the whole polyline |
options |
{...} |
Optional: a table that may contain the following options: |
options.u_axis |
{x,y,z} |
Local coordinate u-axis for the orientation of the plane |
options.v_axis |
{x,y,z} |
Local coordinate v-axis for the orientation of the plane |
options.w_axis |
{x,y,z} |
Local coordinate w-axis for the orientation of the plane-normal |
| Type | Description |
|---|---|
element_handle |
An element handle of the newly created part |
pytha, element handles, Axes and directions, create_polyline, create_polygon_ex