RadicalCSG / Chisel.Prototype

Work in progress prototype for the Chisel Level Editor, for Unity
MIT License
493 stars 33 forks source link

CSG bugs #295

Open LogicalError opened 3 years ago

LogicalError commented 3 years ago

There are several CSG bugs, most of them seem to have to do with merging vertices

LogicalError commented 3 years ago

Some bugs have been fixed in #297

LogicalError commented 2 years ago

Seems the last bug is vertices being merged when they shouldn't. This is because vertices are merged based on distance, when it should be based on comparing intersecting plane triplets on multiple vertices.

Right now this distance merging fails on sharply angled planes where vertices that are very close to each other get merged and create polygons which causes degenerate edges on polygons

A B C ---->---> | <---* /B C

A,B,C are vertices, and thee edge BC is followed by CB This causes problems further on in the pipeline.

LogicalError commented 2 years ago

Apparently github kills ascii art. awesome