MCPcopy
hub / github.com/mrdoob/three.js / setFromObject

Method setFromObject

src/math/Box3.js:155–161  ·  view source on GitHub ↗

* Computes the world-axis-aligned bounding box for the given 3D object * (including its children), accounting for the object's, and children's, * world transforms. The function may result in a larger box than strictly necessary. * * Note: To compute the correct bounding box, make sure the gi

( object, precise = false )

Source from the content-addressed store, hash-verified

153 * @return {Box3} A reference to this bounding box.
154 */
155 setFromObject( object, precise = false ) {
156
157 this.makeEmpty();
158
159 return this.expandByObject( object, precise );
160
161 }
162
163 /**
164 * Returns a new box with copied values from this instance.

Callers 5

houseSceneFunction · 0.95
ViewportFunction · 0.95
constructorMethod · 0.95
applyTransformMatrixMethod · 0.95
Box3.tests.jsFile · 0.45

Calls 2

makeEmptyMethod · 0.95
expandByObjectMethod · 0.95

Tested by

no test coverage detected