Python package
ra.silhouette_ring
Rings extruded from a frontal profile.
import rhinoartisan as ra
Wraps ArtisanPlugin.Scripting.SilhouetteRingApi.
Functions
| Function | |
|---|---|
all() | SilhouetteRing handles for every object of this kind in the active document (empty when there is no document). |
by_layer() | SilhouetteRing handles on the layer with the given full path (empty when the layer does not exist). |
count() | Number of objects of this kind in the active document. |
create() | Builds a silhouette ring (the ArtisanSilhouetteRing tool, formerly ArtisanRingExtrude, headless): a frontal silhouette around the finger hole is extruded along the finger axis and cut by a lateral silhouette (a RING_SIDE_CURVE asset) — the quick way to get a wide, sculpted band. |
find() | The handle for id, or None when the id does not belong to an object of this kind. |
selected() | SilhouetteRing handles for the objects of this kind currently selected in the active document. |
ra.silhouette_ring.all()
ra.silhouette_ring.all() -> List[SilhouetteRing]
SilhouetteRing handles for every object of this kind in the active document (empty when there is no document).
ra.silhouette_ring.by_layer()
ra.silhouette_ring.by_layer(layer_name: str) -> List[SilhouetteRing]
SilhouetteRing handles on the layer with the given full path (empty when the layer does not exist).
| Parameter | Type | |
|---|---|---|
layer_name | str | required |
ra.silhouette_ring.count()
ra.silhouette_ring.count() -> int
Number of objects of this kind in the active document.
ra.silhouette_ring.create()
ra.silhouette_ring.create(top_length=None, side_length=None, bottom_length=None, top_thickness=None, bottom_thickness=None, hollow=None, linear_thickness=None, angle=None, symmetry=None, advanced_top_thickness=None, advanced_lateral_thickness=None, frontal_profile=None, lateral_profile=None, finger_diameter=None, plane=None, silhouette=None, table_width=None, shoulder=None, shoulder_bulge=None, corner_radius=None, curve_id=None, fit_curve=None, edge_fillet=None, comfort_fit=None, hollow_span=None) -> SilhouetteRing
Builds a silhouette ring (the ArtisanSilhouetteRing tool, formerly ArtisanRingExtrude, headless): a frontal silhouette around the finger hole is extruded along the finger axis and cut by a lateral silhouette (a RING_SIDE_CURVE asset) — the quick way to get a wide, sculpted band. silhouette picks where the frontal outline comes from. Omitted keeps the historic PROFILE (or the user’s saved defaults): PROFILE = an EXTERNAL_RING_PROFILE asset (frontal_profile) grown around the finger by top_length / side_length / bottom_length; PARAMETRIC = a flat table table_width wide (10) sitting top_length over the finger, a round bottom bottom_length thick and shoulders that land tangent on it, shoulder STRAIGHT (default) | CURVED with shoulder_bulge (0.5, negative = inwards, NaN = keep), corners rounded by corner_radius (NaN = keep, 0 = sharp); CURVE = the closed planar curve curve_id of the document, used as drawn around the finger axis, or scaled to the three lengths when fit_curve is True. Passing curve_id alone implies CURVE. edge_fillet softens the outer edges of the band and comfort_fit the two edges of the finger hole (mm, NaN = keep, 0 = sharp). hollow_span (degrees, NaN = keep, 360 = whole band) limits the hollow to an arc centred on the top, leaving the bottom solid. Millimetres; omitting keeps the tool default (or the user’s saved defaults): top_length 2, side_length 2, bottom_length 2 (metal over the finger at top / sides / bottom), top_thickness 2, bottom_thickness 2 (band width, frontal view). hollow True carves the inside with linear_thickness (2), angle (degrees, NaN = 0), symmetry SYMMETRIC (default) | ASYMMETRIC with advanced_top_thickness / advanced_lateral_thickness (2). frontal_profile / lateral_profile pick assets by name (see AssetsApi). finger_diameter 0 = document ring size. plane omitted = world XY. Returns an SilhouetteRing handle to the new ring; its setters edit the ring in place.
| Parameter | Type | |
|---|---|---|
top_length | float | optional — None = the tool default |
side_length | float | optional — None = the tool default |
bottom_length | float | optional — None = the tool default |
top_thickness | float | optional — None = the tool default |
bottom_thickness | float | optional — None = the tool default |
hollow | Optional[bool] | optional — None = the tool default |
linear_thickness | float | optional — None = the tool default |
angle | float | optional — None = the tool default |
symmetry | str | optional — None = the tool default |
advanced_top_thickness | float | optional — None = the tool default |
advanced_lateral_thickness | float | optional — None = the tool default |
frontal_profile | str | optional — None = the tool default |
lateral_profile | str | optional — None = the tool default |
finger_diameter | float | optional — None = the tool default |
plane | Optional[PlaneLike] | optional — None = the tool default |
silhouette | str | optional — None = the tool default |
table_width | float | optional — None = the tool default |
shoulder | str | optional — None = the tool default |
shoulder_bulge | float | optional — None = the tool default |
corner_radius | float | optional — None = the tool default |
curve_id | Optional[IdLike] | optional — None = the tool default |
fit_curve | Optional[bool] | optional — None = the tool default |
edge_fillet | float | optional — None = the tool default |
comfort_fit | float | optional — None = the tool default |
hollow_span | float | optional — None = the tool default |
ra.silhouette_ring.find()
ra.silhouette_ring.find(id: IdLike) -> SilhouetteRing
The handle for id, or None when the id does not belong to an object of this kind.
| Parameter | Type | |
|---|---|---|
id | IdLike | required |
ra.silhouette_ring.selected()
ra.silhouette_ring.selected() -> List[SilhouetteRing]
SilhouetteRing handles for the objects of this kind currently selected in the active document.
Handles
Objects returned by the functions above. Assigning a settable property regenerates the object; the change is one undo step inside ra.transaction().
SilhouetteRing (handle)
Silhouette ring (the old Ring Extrude): the outline of the ring seen from the front, around the finger hole, extruded to a band width. Every setter regenerates the ring in place (same id). The names are the ones of the create_silhouette_ring tool: a THICKNESS is metal measured from the finger (top, bottom, side), a WIDTH is the band along the finger axis. ra.silhouette_ring.create keeps the historic argument names of Ring Extrude, where those were called lengths and thicknesses.
| Property | Type | Settable | |
|---|---|---|---|
angle | float | yes | degrees the silhouette is turned around the finger axis |
bottom_thickness | float | yes | mm of metal under the finger at the bottom |
bottom_width | float | yes | mm, band width at the bottom |
comfort_fit | float | yes | mm, radius softening the two edges of the finger hole; 0 = sharp |
corner_radius | float | yes | mm, radius rounding the corners of the silhouette (PARAMETRIC); 0 = sharp |
edge_fillet | float | yes | mm, radius softening the outer edges of the band; 0 = sharp |
fit_curve | bool | yes | CURVE: True = the curve is scaled to the three thicknesses instead of used as drawn |
frontal_profile_name | str | EXTERNAL_RING_PROFILE asset name (PROFILE), "" when unset | |
has_curve | bool | True when the ring carries its own silhouette curve (set with SetCurveId) | |
hollow | bool | yes | True = the band is carved from the finger side |
hollow_lateral_thickness | float | yes | mm, wall left at the sides by an ASYMMETRIC hollow |
hollow_span | float | yes | degrees of arc, centred on the top, the hollow carves; 360 = the whole band |
hollow_symmetry | str | yes | “SYMMETRIC” (one wall: WallThickness) or “ASYMMETRIC” (HollowTopThickness / HollowLateralThickness) |
hollow_top_thickness | float | yes | mm, wall left at the top by an ASYMMETRIC hollow |
lateral_profile_name | str | RING_SIDE_CURVE asset name: the bend of the band’s edge between its two widths | |
layer_name | str | ||
mother_gem_id | str | ||
object_type | str | ||
position | Point3d | ||
ring_diameter_mm | float | ||
ring_size_label | str | ||
ring_size_region | str | ||
shoulder | str | yes | “STRAIGHT” or “CURVED” (PARAMETRIC) |
shoulder_bulge | float | yes | mm the middle of a CURVED shoulder leaves the straight line; negative = inwards |
side_thickness | float | yes | mm of metal at the sides of the finger (PROFILE, or CURVE fitted to the ring size) |
silhouette | str | yes | “PARAMETRIC” (flat table, round bottom, tangent shoulders), “PROFILE” (an EXTERNAL_RING_PROFILE asset) or “CURVE” (the user’s own closed curve) |
table_width | float | yes | mm, width of the flat table (PARAMETRIC) |
top_thickness | float | yes | mm of metal over the finger at the top |
top_width | float | yes | mm, band width at the top, along the finger axis |
wall_thickness | float | yes | mm, wall left by a SYMMETRIC hollow |
| Method | |
|---|---|
delete() | |
move(translation: VectorLike) | |
set_curve_id(curve_id: IdLike) | A closed planar curve of the document becomes the silhouette (copied into the ring) and the mode becomes CURVE |
set_frontal_profile(asset_name: str) | EXTERNAL_RING_PROFILE asset by name |
set_lateral_profile(asset_name: str) | RING_SIDE_CURVE asset by name |
set_width(width: float) | Band width, top and bottom alike. |
Plus what every handle has: id, delete(), update(**kwargs), parameters(), equality and hashing by id, and raw (the underlying .NET object).