Skip to content

Commit

Permalink
- fix count of angles after sorting points.
Browse files Browse the repository at this point in the history
  • Loading branch information
satabol committed Oct 13, 2024
1 parent ca49fc0 commit e146331
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nodes/CAD/stright_skeleton_2d_extrude.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,13 @@ def process(self):
areas = []
for IJK in range(len(verts_boundaries)):
verts_boundaries_IJK, edges_boundaries_IJK = verts_boundaries[len(verts_boundaries)-1-IJK], edges_boundaries[len(verts_boundaries)-1-IJK]
vect_boundaries_IJ_sorted = vertices_sort_by_edges(verts_boundaries_IJK, edges_boundaries_IJK)
res_boundaries_verts.append(vect_boundaries_IJ_sorted)
area = areas_from_polygons(vect_boundaries_IJ_sorted, [list(range(len(vect_boundaries_IJ_sorted)))], )
vect_boundaries_IJK_sorted = vertices_sort_by_edges(verts_boundaries_IJK, edges_boundaries_IJK)
res_boundaries_verts.append(vect_boundaries_IJK_sorted)
area = areas_from_polygons(vect_boundaries_IJK_sorted, [list(range(len(vect_boundaries_IJK_sorted)))], )
areas.append(area[0])
object_boundaries.append(vect_boundaries_IJ_sorted)
object_area_boundaries.append({"area":area, "object_boundaries":vect_boundaries_IJ_sorted})
objects_angles_of_boundary.append( [ss_angle*180/math.pi,]*len(verts_boundaries_IJK) )
object_boundaries.append(vect_boundaries_IJK_sorted)
object_area_boundaries.append({"area":area, "object_boundaries":vect_boundaries_IJK_sorted})
objects_angles_of_boundary.append( [ss_angle*180/math.pi,]*len(vect_boundaries_IJK_sorted) )
pass
srt = sort_together([areas, object_boundaries, objects_angles_of_boundary])
object_boundaries_sorted, objects_angles_of_boundary_sorted = list(reversed(srt[1])), list(reversed(srt[2]))
Expand Down

0 comments on commit e146331

Please sign in to comment.