-
Notifications
You must be signed in to change notification settings - Fork 18
pytha.create_polyline
daniel-flassig edited this page May 6, 2020
·
18 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_polygon(loop_points [,loop_segments [,holes [,options]]]) | Parameter | Type | Description |
|---|---|---|
loop_points |
{{x,y,z}, ...} |
Coordinates of the loop points |
loop_segments |
{segment, ...} |
Optional specification of the segments, where each segment may be a table to indicate the following options: |
segment.radius |
number |
Radius of the arc |
segment.orientation |
"cw" or "ccw"
|
For radius specification: clockwise or counter-clockwise orientation |
segment.select_arc |
"small", "large"
|
For radius specification: 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 |
segment.angle |
number |
Angle of the arc, positive for counter-clockwise arcs |
holes |
{hole_points, hole_segments, ...} |
Alternating hole-coordinates and hole-segments, similar to loop_points and loop_segments
|
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 |