I was working on converting a SVG to a mesh today in the playground, and I came across something weird.
I was able to generate a list of x,y coordinates for drawing my shape. i convert that to a list of Vector3(x,0,y) vectors, and pass it to MeshBuilder CreateLines.
works fine, draws it, looks good.
but when i set the line mesh position to Zero, it…doesn’t show up there.
I thought when you made a mesh with MeshBuilder, you could then set position, and it would use the center of the mesh to position it.
I am not sure why, but my bounding box info seems a little odd.
In the end, I ended up importing the SVG into Blender and exporting a GLTF object…and that is having the same issue!
however, the playground just has the values as x,y coordinates, which removes anything blender is doing. what am I missing here?
https://www.babylonjs-playground.com/#QBUZ09#5
Thanks