Home > OS >  Initialize triangular mesh in e.g. VTK based on np array with coordinates of vertices and np array w
Initialize triangular mesh in e.g. VTK based on np array with coordinates of vertices and np array w

Time:06-05

Could you tell me how do I initialize triangular mesh based on np array with coordinates of vertices and np array with triangles (it contains triples of indices of vertices from first array)?

Could be done in VTK or any other Python library, the final goal is to do decimation on this mesh.

Thank you.

CodePudding user response:

A solution using enter image description here

CodePudding user response:

You can use several libraries:

Trimesh

enter image description here

SciPy

1. enter image description here

2. enter image description here

  • Related