The application's object for this one, free (e.g. the viewer's mesh): set it when the object is added, read it back from a hit. Cleared when the object is removed.
Whether it is left whole whatever the scene's cutting planes (see CuttingPlanesController):
every part drawn, culled and picked as without planes.
Whether its object is still in the controller.
How many parts its object has.
Whether it is selected: every part drawn in the selection colours, and in the top layer with
the controller's selectionOverlay.
Whether it is shown: every part.
Whether it is seen through: the opacity of every part and its edges' multiplied by the
controller's xRayOpacity, its own opacity kept.
Moves it: applies transform (affine) to the world matrix of every part.
World bounds: the union of its parts' boxes, written to target.
Diffuse colour of its part at rank part (its first by default), written to target.
Colour of the sharp edges of its part at rank part (its first by default), written to
target.
Emissive colour of its part at rank part (its first by default), written to target.
World matrix of its part at rank part (its first by default), 4x4 column-major, written to
target.
Metalness, in 0..1, of its part at rank part (its first by default).
Opacity, in 0..1, of its part at rank part (its first by default).
Roughness, in 0..1, of its part at rank part (its first by default).
Sets the diffuse colour (stored as 8-bit sRGB) of every part, or of its part at part.
Optionalpart: numberSets the colour of the sharp edges (8-bit sRGB) of every part, or of its part at part.
Optionalpart: numberSets the emissive colour (stored as 8-bit sRGB) of every part, or of its part at part.
Optionalpart: numberSets the metalness, in 0..1, of every part, or of its part at rank part.
Optionalpart: numberSets the opacity, in 0..1, of every part, or of its part at rank part.
Optionalpart: numberSets the roughness, in 0..1, of every part, or of its part at rank part.
Optionalpart: number
An object of a
MeshController, asaddMeshesreturns it and its hits give it back (MeshHit.mesh): reads and changes its object's state in the controller, which holds it (no state of its own). Removed (removeMeshes,clear), it is no longer isValid: its setters do nothing, its getters throw.The changes are as fast one object at a time as many at once: the tree's commands of a task are merged (see
BoxTree).