GaryHuan9 / Echo

An awesome ray traced 3D renderer build in C# from scratch!
MIT License
17 stars 3 forks source link

[Feature Request] Triangulation of all n-gons where n > 3 #48

Open ClemensU42 opened 1 year ago

ClemensU42 commented 1 year ago

Is your feature request related to a problem? Please describe. All Faces containing more than 3 vertices whill be incorrectly imported from the .ply file.

Describe the solution you'd like If a n-gon with more than 3 vertices appears, it should be triangulated.

Describe alternatives you've considered Let the blender plugin triangulate the meshes, but this could cause problems when creating/editing a .echo file outside of blender.

Additional context Seems like a good starting points: https://www.youtube.com/watch?v=QAdfkylpYwc

GaryHuan9 commented 1 year ago

I am not sure how difficult implementing a good triangulation algorithm will be, but feel free to try it if you want to!