JuliaGeometry / GeometryBasics.jl

Basic Geometry Types
MIT License
164 stars 54 forks source link

Trying to plot basic geometry but decompose ordering not helping... #159

Closed dsantiago closed 2 years ago

dsantiago commented 2 years ago

image

Tried to plot a 2D rectangle, but decompose function first go all the way with the X's than the Y's and with the ordering the shapes will not work

SimonDanisch commented 2 years ago

They're supposed to be sorted to work well with triangle strips, and go together with decompose(GLTriangleFace, rectangle)

dsantiago commented 2 years ago

They're supposed to be sorted to work well with triangle strips, and go together with decompose(GLTriangleFace, rectangle)

I see, there's a better reason to use range X than range Y. Thanks for explaining, closing it now.