ReadonlyisThe 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 in the BoxTree: bounded, culled in and picked (see MeshController.setActive).
Whether its sharp edges are drawn (default; the scene's settings.meshes.edgesPassEnabled
drawing any): without, only its faces and its lines are.
Whether its faces are drawn (default): without, only its sharp edges and its lines are (e.g. a wireframe). Culled and picked as shown either way.
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.
A helper drawing its normals, for debugging (see MeshController.createNormalsHelper).
The length of a normal, in world units.
Dash and gap of the ribbons of its part at rank part, in pixels: both 0 when solid, or
1 pixel wide.
Style of the segments of its part at rank part (its first by default): its lines, or the
sharp edges of a part of triangles (see LineStyle); null when drawn 1 pixel wide.
Width of the ribbons of its part at rank part, in pixels; 0 when 1 pixel wide.
The name of the material of its part at rank part (its first by default); null without.
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).
The geometry its part at rank part (its first by default) draws.
Roughness, in 0..1, of its part at rank part (its first by default).
Projects point on the segments of its part at rank part (its first by default): the sharp
edges of its triangles, or its lines. The nearest point within maxDistance of it, each
segment's ends left out (kept between 5 % and 95 % of the segment), e.g. to snap a point
picked on the part to its nearest edge.
Whether a segment is within maxDistance.
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: numberDashes the ribbons of every part, or of its part at rank part: dash long, gap apart, in
pixels (0 for either: solid); the dashes restart at each segment.
Optionalpart: numberFor a part drawn 1 pixel wide: give it a width first (setLineWidth).
Sets the style of the segments of every part, or of its part at rank part: the lines of a
line part, the sharp edges of a part of triangles, as ribbons of a width and dashes; null:
1 pixel wide.
Optionalpart: numberSets the width of the ribbons of every part, or of its part at rank part, in pixels: above 0,
drawn as ribbons, each part keeping its dashes; 0, back to 1 pixel wide, its dashes dropped.
Optionalpart: numberPlaces it: sets the world matrix (affine) of every part, or of its part at rank part, to
matrix. Absolute, where applyMatrix4 composes.
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).