Schemas / Geometry / paint
rig.geometry.star
v0.31.0 · draft 6 fields 5 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
centerX |
float | required | Centre X, local space |
centerY |
float | required | Centre Y, local space |
radius |
float | required | Centre to outer point |
innerRadius |
float | required | Centre to inner point, in the same units as radius |
points |
integer3 – * | required | Number of outer points; at least 3 |
rotationDegrees |
float | optional | Optional. Absent = 0; first outer point along +X |
Alternating-radius star. Format when present.
innerRadius is an absolute distance, not a fraction of radius. The retired rig.geometry.shape used a 0-1 ratio, so a reader converting old documents multiplies by the outer radius. Local (0,0) is the authored centre - see rig.spatial.anchor.
Appearance: rig.paint.fill_stroke.
JSON Schema
Resolves at https://rig.works/schemas/rig.geometry.star.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.geometry.star.schema.json",
"title": "rig.geometry.star",
"type": "object",
"additionalProperties": false,
"properties": {
"centerX": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"centerY": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"radius": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"innerRadius": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"points": {
"type": "integer",
"minimum": 3
},
"rotationDegrees": {
"$ref": "./_defs.schema.json#/$defs/float"
}
},
"required": [
"centerX",
"centerY",
"radius",
"innerRadius",
"points"
]
}