Python package
ra.gems_from_circle
Turn circles into round stones of the matching size.
import rhinoartisan as ra
Wraps ArtisanPlugin.Scripting.GemsFromCircleApi.
Functions
| Function | |
|---|---|
create() | Turns circles into round gems — the ArtisanGemsFromCircle tool, headless. |
ra.gems_from_circle.create()
ra.gems_from_circle.create(curve_ids: Sequence[IdLike], gem_material=None) -> List[str]
Turns circles into round gems — the ArtisanGemsFromCircle tool, headless. Every curve in curve_ids that is a circle (0.001 mm tolerance) becomes a ROUND gem of that diameter, placed on the circle’s plane and added to the secondary gems layer; other curves are skipped. gem_material accepts the GemApi vocabulary (default Diamond). Returns the ids of the created gems (empty if no circle).
| Parameter | Type | |
|---|---|---|
curve_ids | Sequence[IdLike] | required |
gem_material | str | optional — None = the tool default |