nicky-nym / city3d

3D architectural building models made using the three.js Javascript API
The Unlicense
9 stars 4 forks source link

make walls solid, not hollow, during section cut #35

Open nicky-nym opened 4 years ago

nicky-nym commented 4 years ago

Currently, when you enable the "Section cuts" via the control panel, the section cut will cut through building walls, and then you can see inside the hollow walls.

Instead, the walls should appear as a solid black poche. This should be pretty easy to do, just by setting the color of the clipping plane to black, and then only showing the portion of the clipping plane that intersects the wall.

See the THREE example code here:

https://threejs.org/examples/#webgl_clipping_stencil

https://github.com/mrdoob/three.js/blob/master/examples/webgl_clipping_stencil.html