How to use the Box3Helper function from three
Find comprehensive JavaScript three.Box3Helper code examples handpicked from public code repositorys.
GitHub: tmmgroupag/threebox

183 184 185 186 187 188 189 190 191 192
let bb = obj.box3(); //create the group to return let boxGrid = new THREE.Group(); boxGrid.name = "BoxGrid"; boxGrid.updateMatrixWorld(true); let boxModel = new THREE.Box3Helper(bb, Objects.prototype._defaults.colors.yellow); boxModel.name = "BoxModel"; boxGrid.add(boxModel); boxModel.layers.disable(0); // it makes the object invisible for the raycaster obj.boundingBox = boxModel;
+ 19 other calls in file
three.Vector3 is the most popular function in three (22341 examples)