section_box_refresh
Refits an active section box to the bounds of everything not hidden (plus 0.1 % of their diagonal), e.g. after the scene changed. No change when no box is set or nothing is visible.
Usage
surface.execute('section_box_refresh')Returns
object with box, in the ok: true envelope.
{
"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"
]
}