trimesh icon indicating copy to clipboard operation
trimesh copied to clipboard

How to create a trimesh with vertices and unique edges

Open StipGod opened this issue 2 years ago • 1 comments

I currently have a problem trying to create a new mesh with a set of vertices and edges.

This is what im currently doing: nmesh = tm.Trimesh(vertices=V, edges_unique=E)

The new mesh is created with the vertices but the faces are not there, preventing me from viewing the mesh.

Thank you for your time and have a nice day!

StipGod avatar May 22 '22 23:05 StipGod

Hey, you'll need to construct and pass (n, 3) int faces from the edges and pass it to the Trimesh constructor.

mikedh avatar May 23 '22 19:05 mikedh