javascript - Three.js - How do I use the BoxHelper on an Object3D with children? -


i'd use three.boxhelper create bounding box object3d has children. motivation can render wireframe bounding box object, without diagonals on box's faces. looking @ source code boxhelper, looks doesn't take object's children account, problem app, since every object has children.

is there way boxhelper include object's children? alternatively, there way use boundingboxhelper (which include children), , render without diagonals?

if want create three.boxhelper object has children, can use pattern:

// box helper    boxhelper = new three.boxhelper( parent ); boxhelper.material.color.set( 0xffffff ); scene.add( boxhelper ); 

in render loop, may have this:

boxhelper.update(); 

three.js r.85


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -