MeshFlattening: add function to unwrap mesh

This commit is contained in:
looooo
2017-10-03 22:52:49 +02:00
committed by wmayer
parent e1247dcb48
commit 2329ac38e8
5 changed files with 44 additions and 25 deletions

View File

@@ -174,7 +174,8 @@ void FaceUnwrapper::findFlatNodes()
std::vector<long> fixed_pins; //TODO: INPUT
LscmRelax mesh_flattener(this->xyz_nodes.transpose(), this->tris.transpose(), fixed_pins);
mesh_flattener.lscm();
mesh_flattener.relax(0.9);
for (int j=0; j<9; j++)
mesh_flattener.relax(0.9);
this->ze_nodes = mesh_flattener.flat_vertices.transpose();
}