DethRaid / wad2gltf

WAD to glTF converter
Mozilla Public License 2.0
16 stars 6 forks source link

[FIX] Correctly triangulate sectors with multiple linedef loops #3

Closed richard-sim closed 8 months ago

richard-sim commented 9 months ago

Sectors can be made up of multiple, separate exterior polygons, interior polygons that form holes in the exterior polygons, in any combination. The Earcut algorithm expects to be provided a vector of exactly one exterior polygon followed by 0 or more interior polygons, all in clockwise winding order.