win fixes + pybind11 improvementS

This commit is contained in:
looooo
2018-02-13 20:42:01 +01:00
committed by wmayer
parent 74cd8706a0
commit d8d79c908e
6 changed files with 42 additions and 46 deletions

View File

@@ -33,6 +33,7 @@
#include <vector>
#include <exception>
std::vector<ColMat<double, 3>> getBoundaries(ColMat<double, 3> vertices, ColMat<long, 3> tris)
{
// get a hashtable for all edges
@@ -172,7 +173,7 @@ FaceUnwrapper::FaceUnwrapper(const TopoDS_Face& face)
void FaceUnwrapper::findFlatNodes(int steps, double val)
{
std::vector<long> fixed_pins; //TODO: INPUT
LscmRelax mesh_flattener(this->xyz_nodes.transpose(), this->tris.transpose(), fixed_pins);
lscmrelax::LscmRelax mesh_flattener(this->xyz_nodes.transpose(), this->tris.transpose(), fixed_pins);
mesh_flattener.lscm();
for (int j=0; j<steps; j++)
mesh_flattener.relax(0.95);