Artisan Grasshopper
Utilities
7 components in Gems › Utilities.
Center Between Gems
Circles tangent to every three neighbouring gems: where the shared prongs go
Nickname: Center Between · Tab: Gems › 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: Gems › 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: Gems › 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 Offset
Girdle curve of each gem offset outwards (or inwards with a negative value) on the gem plane
Nickname: Gem Offset · Tab: Gems › 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: Gems › 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: Gems › 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 |
Rotate Gems
Rotates each gem about its own axis (positive = left, negative = right)
Nickname: Rotate Gems · Tab: Gems › 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 |