section_box_set

Cuts away everything outside the axis-aligned box min..max (f64 world space; min < max on every axis). Cut faces of closed solids are capped. Cut-away geometry is not pickable.

Command

Usage

TypeScript
surface.execute('section_box_set', { min, max })

Parameters

  • minobject

    f64 world-space point

    Required

  • maxobject

    f64 world-space point

    Required

Returns

object with box, in the ok: true envelope.

JSON
{
  "type": "object",
  "properties": {
    "box": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "min": {
          "type": "object",
          "description": "f64 world-space point",
          "properties": {
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            },
            "z": {
              "type": "number"
            }
          },
          "required": [
            "x",
            "y",
            "z"
          ]
        },
        "max": {
          "type": "object",
          "description": "f64 world-space point",
          "properties": {
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            },
            "z": {
              "type": "number"
            }
          },
          "required": [
            "x",
            "y",
            "z"
          ]
        }
      },
      "required": [
        "min",
        "max"
      ]
    }
  },
  "required": [
    "box"
  ]
}

See also