Schemas / CAD / solids
rig.cad.cuboid
v0.31.0 · draft 4 fields 3 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
sizeX |
float | required | Extent along local X |
sizeY |
float | required | Extent along local Y |
sizeZ |
float | required | Extent along local Z |
center |
bool | optional | Optional. Absent = true: the cuboid is centred on the local origin. False: the origin is a corner, extents run +X +Y +Z |
Axis-aligned rectangular solid. Format when present.
This is a CSG primitive, not a triangle mesh. Pose lives on rig.spatial.transform. When this component is present it is the solid source of truth; rig.geometry.mesh on the same entity is an optional bake a CSG host may rebuild.
A 2D rectangle stays on rig.geometry.rectangle.
JSON Schema
Resolves at https://rig.works/schemas/rig.cad.cuboid.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.cad.cuboid.schema.json",
"title": "rig.cad.cuboid",
"type": "object",
"additionalProperties": false,
"properties": {
"sizeX": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"sizeY": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"sizeZ": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"center": {
"$ref": "./_defs.schema.json#/$defs/bool"
}
},
"required": [
"sizeX",
"sizeY",
"sizeZ"
]
}
Seen in
bim-bcf.json · bim-model.json · cad-boolean.json · cad-dimension.json · cad-reference.json