简体   繁体   中英

Three.js Object appears Hollow after Clipping?

I am trying to clip off portions of a box in three.js , but each time the box crosses the ClipPath it's insides appear hollow.

如下所示(方框为棕色)

Is there a way to render the box so it looks solid after it is clipped?

Or is there an easier way to clip the ends of the box that stick outside the bounds of this triangle?

盒子伸出三角形

I'm still learning so any help is greatly appreciated. Thank you!

You would have to insert a triangle yourself to make the new face resulting from the corner being cut off.

It's a simple example of a powerful general technique called Constructive Solid Geometry .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM