Schemas / CAD / solids

rig.cad.chamfer

v0.31.0 · draft 3 fields 1 required

Fields

FieldTypeMeaning
distance float required Chamfer setback along both faces
edges array<object> optional Optional. Undirected vertex pairs into that entity's rig.geometry.mesh positions. Store min(a,b), max(a,b). See mesh edges
allEdges bool optional Optional. Absent = false. True = every authored mesh edge; edges is ignored

Bevel selected edges of a solid. Format when present.

Compose on the solid entity (rig.cad.cuboid, rig.cad.boolean, a mesh solid, ...).

Name edges or set allEdges. An empty target list is a no-op.

Same honesty as rig.cad.fillet: this is authored intent. A mesh CSG kernel may approximate; it is not a B-rep chamfer.

JSON Schema

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

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.cad.chamfer.schema.json",
  "title": "rig.cad.chamfer",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "distance": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "a",
          "b"
        ],
        "properties": {
          "a": {
            "$ref": "./_defs.schema.json#/$defs/uint32"
          },
          "b": {
            "$ref": "./_defs.schema.json#/$defs/uint32"
          }
        }
      }
    },
    "allEdges": {
      "$ref": "./_defs.schema.json#/$defs/bool"
    }
  },
  "required": [
    "distance"
  ]
}

Seen in

cad-boolean.json