How to render clipped surfaces as solid objects

前端 未结 2 2073
旧时难觅i
旧时难觅i 2020-12-03 09:23

In Three.js, I have a 3d object where I am using local clipping planes to only render a part of the object.

However, since 3d objects are \"hollow\" (meaning only th

2条回答
  •  一向
    一向 (楼主)
    2020-12-03 09:48

    I made a THREE.SectionHelper class which could be interesting if you want to set a different material/color for the inside of the mesh that you are clipping. Check a demo in this fiddle.

    var sectionHelper = new THREE.SectionHelper( mesh, 0xffffff );
    scene.add(sectionHelper);
    

提交回复
热议问题