Schemas / CAD / solids
rig.cad.revolve
v0.31.0 · draft 3 fields 1 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
profile |
entity | required | Contour entity: rig.geometry.polygon, rig.geometry.path, or rig.geometry.spline |
revolveDegrees |
float | optional | Optional. Sweep angle. Absent = 360 |
circularSegments |
integer3 – * | optional | Optional. Tessellation hint around the axis (≥ 3). Absent = host default |
Solid from a 2D profile spun about local +Y. Format when present.
The profile is read in that entity's local XY. A full revolve expects the profile on one side of the Y axis. This entity's rig.spatial.transform places the solid.
When this component is present it is the solid source of truth; rig.geometry.mesh on the same entity is an optional bake.
JSON Schema
Resolves at https://rig.works/schemas/rig.cad.revolve.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.cad.revolve.schema.json",
"title": "rig.cad.revolve",
"type": "object",
"additionalProperties": false,
"properties": {
"profile": {
"$ref": "./_defs.schema.json#/$defs/entity"
},
"revolveDegrees": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"circularSegments": {
"type": "integer",
"minimum": 3
}
},
"required": [
"profile"
]
}