add area relaxing method:

not yet working
This commit is contained in:
lo
2018-02-27 21:08:00 +01:00
committed by wmayer
parent 8188705821
commit 08b329c9b5
2 changed files with 69 additions and 4 deletions

View File

@@ -32,8 +32,9 @@ class CreateFlatMesh(BaseCommand):
flattener = flatmesh.FaceUnwrapper(points, faces)
flattener.findFlatNodes(5, 0.99)
boundaries = flattener.getFlatBoundaryNodes()
print(flattener.ze_nodes)
print(boundaries)
print('number of nodes: {}'.format(len(flattener.ze_nodes)))
print('number of faces: {}'.format(len(flattener.tris)))
wires = []
for edge in boundaries:
pi = Part.makePolygon([App.Vector(*node) for node in edge])