Hi all!
Is here an easy way to do the triangle strip from polygon?
In this way you can store all polygons just like one Löve's "line". Such as triangles:
1-2-3, 2-3-4, 3-4-5, 4-5-6, 5-6-7 etc.
The standard polygon triangulation, what I have and what I've expected:
Triangulation as a triangle strip
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Triangulation as a triangle strip
Hello!
Not sure, but my gut feeling is that no, there is no easy way to do it from ANY polygon.darkfrei wrote: ↑Sat Aug 14, 2021 8:45 pm Is here an easy way to do the triangle strip from polygon?
I don't think it's even possible to create a triangle strip for ANY concave polygon either.
It could be done with relatively easy math if you have a "path" or a "polyline" (if you planning to do something like a "stroke" function).
Last edited by ivan on Tue Aug 17, 2021 5:26 am, edited 1 time in total.
Re: Triangulation as a triangle strip
How would you convert this polygon to a triangle strip without adding vertices?
Edit: Never mind, I saw how.
Edit: Never mind, I saw how.
Re: Triangulation as a triangle strip
what about this one?
Re: Triangulation as a triangle strip
You can use degenerate triangles
wiki wrote:The degenerate triangles effectively introduce discontinuities or "jumps" to the strip.
Who is online
Users browsing this forum: No registered users and 79 guests