August 2018
Intermediate to advanced
528 pages
10h 58m
English
The final function is the least interesting one of those offered by ThreeBSP. With this function, we can combine two meshes to create a new one. So, when we apply this to the two spheres and the cube, we'll get a single object-a result of the union function:

This is not really that useful because this functionality is also provided by Three.js (see Chapter 8, Creating and Loading Advanced Meshes and Geometries, where we explain how to use THREE.Geometry.merge), which also offers slightly better performance. If you enable rotation, you can see that this union is applied from the perspective of the center sphere since it is ...
Read now
Unlock full access