Skip to content

.NET API

GemsFromCircleApi

Turn circles into round stones of the matching size.

from ArtisanPlugin.Scripting import GemsFromCircleApi

See also the Python package, ra.gems_from_circle.

Methods

Method
CreateTurns circles into round gems — the ArtisanGemsFromCircle tool, headless.

Create

IReadOnlyList<Guid> GemsFromCircleApi.Create(
    IEnumerable<Guid> curveIds,
    string gemMaterial = null)

Turns circles into round gems — the ArtisanGemsFromCircle tool, headless. Every curve in curveIds 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. gemMaterial accepts the GemApi vocabulary (default Diamond). Returns the ids of the created gems (empty if no circle).

ParameterTypeDefault
curveIdsIEnumerable<Guid>required
gemMaterialstringnull

Returns IReadOnlyList<Guid>.