ObjectUtils Class
Object utils is a collection of methods to apply operations to Object3D instances.
Item Index
Methods
calculateBoundingBox
(
Box3
-
object
Calculates a bounding box for an object considering all its children.
Includes booth the object and all of its children, the box is adjusted to world space coordinates.
Parameters:
-
object
Object3DRoot object to be traversed.
Returns:
Box3:
Bounding box of the object considering all of its children.
centerGeometryOrigin
(
-
object
Recalculate all children origins, to be centered with their geometry.
Parameters:
-
object
Object3DObject to recalculate origin of.
centerUnitary
(
-
object
Scale and center object into a unitary box.
Useful to scale objects to fit into a known size box.
Parameters:
-
object
Object3DObject to be positioned and scaled.
convertToBufferGeometry
(
-
object
Covert all the geometries found in the object to BufferGeometry format.
Parameters:
-
object
Object3DObject to search for geometries