Artisan Grasshopper
Utilities
10 components in Diamonds › Utilities.
Center Between Gems
Circles tangent to every three neighbouring gems: where the shared prongs go
Nickname: Center Between · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Gems | Gems | GemObject | list | — | Gems |
| Triangle Factor | Factor | Number | item | 0.2 | How unequal a triangle of gems may be to still count as neighbours (0-1) |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Circles | Circles | Circle | list | Tangent circles between neighbouring gems |
| Centers | Centers | Point | list | Their centres |
Curve From Gems
Interpolated curve through the gem centres, in the order given
Nickname: Curve From Gems · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Gems | Gems | GemObject | list | — | Gems, in order |
| Degree | Degree | Integer | item | 3 | Curve degree |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Curve | Curve | Curve | item | Curve through the centres |
| Centers | Centers | Point | list | Gem centres |
Gem Collisions
Finds the pairs of gems whose meshes intersect
Nickname: Gem Collisions · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Gems | Gems | GemObject | list | Gems to check |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Collides | Collides | Boolean | list | Per gem: true when it intersects another gem |
| Pairs A | A | Integer | list | First index of each colliding pair |
| Pairs B | B | Integer | list | Second index of each colliding pair |
| Count | N | Integer | item | Number of colliding pairs |
Gem Info
Extracts gem information and outputs it as JSON with setting type and compound.
Nickname: Gem Info · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Gems | Gems | GemObject | list | — | List of gem objects |
| Setting Type (optional) | Setting | Text | item | PRONGS | Gem setting type (e.g. PRONGS, PAVE, CHANNEL, FLUSH, BEZEL, PRESSURE, WAX, OTHER) |
| Compound (optional) | Compound | Text | item | DIAMOND | Gem compound (e.g. DIAMOND, RUBY, SAPPHIRE) |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| JSON | JSON | Text | item | JSON output with gem info |
| GemInfo | GemInfo | Generic | item | Gem info as a dictionary object |
Gem Offset
Girdle curve of each gem offset outwards (or inwards with a negative value) on the gem plane
Nickname: Gem Offset · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Gems | Gems | GemObject | list | — | Gems |
| Offset | Offset | Number | item | 0.3 | Offset distance (negative = inwards) |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Curves | Curves | Curve | list | Offset curves, one per gem |
| Girdles | Girdles | Curve | list | Girdle curves, one per gem |
Gems Color By Size
A colour per gem by its size, with the plugin’s size palette (0.8 to 3.5 mm in 0.1 mm steps)
Nickname: Color By Size · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Gems | Gems | GemObject | list | Gems |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Colors | Colors | Colour | list | One colour per gem |
| Sizes | Sizes | Number | list | Gem sizes (X), rounded to 0.05 |
| Distinct Sizes | Distinct | Number | list | The distinct sizes found, sorted |
Gems Flip
Flips the plane of each gem (table pointing the other way)
Nickname: Gems Flip · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Gems | Gems | GemObject | list | Gems |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Gems | Gems | GemObject | list | Flipped gems |
| Meshes | Meshes | Mesh | list | Flipped gem meshes |
Metal Info
Extracts metal geometry information and outputs it as JSON with material.
Nickname: Metal Info · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Geometry | Geo | Geometry | list | — | List of metal geometry |
| Material (optional) | Material | Text | item | GOLD_YELLOW_18 | Metal material (e.g. GOLD_YELLOW_18, SILVER, PLATINUM) |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| JSON | JSON | Text | item | JSON output with metal info |
| MetalInfo | MetalInfo | Generic | item | Metal info as a dictionary object |
Prong Axis
Axis curves for the prongs of a gem: number of prongs, height over and under the girdle, bottom diameter
Nickname: Prong Axis · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Gem | Gem | GemObject | item | — | Gem the prongs go around |
| Number Of Prongs | N | Integer | item | d.NumberOfProngs | Number of prongs |
| Straight | Straight | Boolean | item | d.Straight | Straight prongs (vertical axis) instead of following the gem |
| Diameter | D | Number | item | d.Diameter | Prong diameter at the girdle |
| Height | H | Number | item | d.Height | Prong height under the girdle |
| Gem Inside | GemIn | Number | item | d.GemInside | How far the prong enters the gem |
| Over Girdle | OverG | Number | item | d.OverGirdle | Prong rise over the girdle |
| Bottom Diameter | BottomD | Number | item | d.BottomDiameter | Diameter of the bottom rail the prongs meet |
| Bottom Rail Inside | BottomIn | Number | item | d.BottomRailInside | Bottom rail offset inwards |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Curves | Curves | Curve | list | One axis curve per prong |
Rotate Gems
Rotates each gem about its own axis (positive = left, negative = right)
Nickname: Rotate Gems · Tab: Diamonds › Utilities
Inputs
| Name | Nickname | Type | Access | Default | Description |
|---|---|---|---|---|---|
| Gems | Gems | GemObject | list | — | Gems |
| Angle | Angle | Number | item | 45 | Rotation angle (degrees) |
Outputs
| Name | Nickname | Type | Access | Description |
|---|---|---|---|---|
| Gems | Gems | GemObject | list | Rotated gems |
| Meshes | Meshes | Mesh | list | Rotated gem meshes |