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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -