Schemas / CAD / solids

rig.cad.sphere

v0.31.0 · draft 2 fields 1 required

Fields

FieldTypeMeaning
radius float required Radius
circularSegments integer3 – * optional Optional. Tessellation hint for mesh CSG kernels (≥ 3). Absent = host default

Solid sphere centred on the local origin. Format when present.

This is a CSG primitive, not an icosphere 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 2D circle stays on rig.geometry.ellipse with equal radii.

JSON Schema

Resolves at https://rig.works/schemas/rig.cad.sphere.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.cad.sphere.schema.json",
  "title": "rig.cad.sphere",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "radius": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "circularSegments": {
      "type": "integer",
      "minimum": 3
    }
  },
  "required": [
    "radius"
  ]
}