Python package
ra.ring_curve
Ring rail curves at the document finger size (closed, open, bypass, shaped).
import rhinoartisan as ra
Wraps ArtisanPlugin.Scripting.RingCurveApi.
Functions
| Function | |
|---|---|
create_bypass() | element = name of a saved element (ra.elements.list) to start from; explicit arguments override it. |
create_closed() | element = name of a saved element (ra.elements.list) to start from; explicit arguments override it. |
create_open() | element = name of a saved element (ra.elements.list) to start from; explicit arguments override it. |
create_shape() | shape_type is “ROUND” (uses diameter) or “ELLIPSE” (uses width x height). |
ra.ring_curve.create_bypass()
ra.ring_curve.create_bypass(opening_length=None, angle=None, offset_x=None, offset_y=None, tangent=None, finger_diameter=None, plane=None, profile=None, element=None) -> str
element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.
| Parameter | Type | |
|---|---|---|
opening_length | float | optional — None = the tool default |
angle | float | optional — None = the tool default |
offset_x | float | optional — None = the tool default |
offset_y | float | optional — None = the tool default |
tangent | float | optional — None = the tool default |
finger_diameter | float | optional — None = the tool default |
plane | Optional[PlaneLike] | optional — None = the tool default |
profile | str | optional — None = the tool default |
element | str | optional — None = the tool default |
ra.ring_curve.create_closed()
ra.ring_curve.create_closed(finger_diameter=None, plane=None, profile=None, element=None) -> str
element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.
| Parameter | Type | |
|---|---|---|
finger_diameter | float | optional — None = the tool default |
plane | Optional[PlaneLike] | optional — None = the tool default |
profile | str | optional — None = the tool default |
element | str | optional — None = the tool default |
ra.ring_curve.create_open()
ra.ring_curve.create_open(opening_length=None, finger_diameter=None, plane=None, profile=None, element=None) -> str
element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.
| Parameter | Type | |
|---|---|---|
opening_length | float | optional — None = the tool default |
finger_diameter | float | optional — None = the tool default |
plane | Optional[PlaneLike] | optional — None = the tool default |
profile | str | optional — None = the tool default |
element | str | optional — None = the tool default |
ra.ring_curve.create_shape()
ra.ring_curve.create_shape(shape_type=None, diameter=None, width=None, height=None, offset=None, move_in_z=None, opening_length=None, finger_diameter=None, plane=None, profile=None, element=None) -> str
shape_type is “ROUND” (uses diameter) or “ELLIPSE” (uses width x height). element = name of a saved element (ra.elements.list) to start from; explicit arguments override it.
| Parameter | Type | |
|---|---|---|
shape_type | str | optional — None = the tool default |
diameter | float | optional — None = the tool default |
width | float | optional — None = the tool default |
height | float | optional — None = the tool default |
offset | float | optional — None = the tool default |
move_in_z | float | optional — None = the tool default |
opening_length | float | optional — None = the tool default |
finger_diameter | float | optional — None = the tool default |
plane | Optional[PlaneLike] | optional — None = the tool default |
profile | str | optional — None = the tool default |
element | str | optional — None = the tool default |