Skip to content

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).

ParameterType
curve_idsSequence[IdLike]required
gem_materialstroptional — None = the tool default