Open ikirill opened 2 years ago
Can you link the MeshCat.jl tutorial? I think MeshCat.jl is on GeometryTypes :/
I debugged this a bit, it's some weirdness in this constructor:
https://github.com/JuliaGeometry/GeometryBasics.jl/blob/master/src/meshes.jl#L91
faces returns nothing, and therefore it tries to triangulate the triangle 😅 I guess the fix would be to implement faces(::Triangle)
to return [GLTriangleFace(1, 2, 3)]
(or 0, 1, 2)...
The doc page at https://juliageometry.github.io/GeometryBasics.jl/dev/meshes/ is empty, so I'm not sure what I'm expected to do, but creating a mesh out of a single triangle sometimes works:
and sometimes doesn't:
I was trying to follow the MeshCat.jl's tutorial, and I got this issue while trying to draw a flat triangle.