simplify rings in new openscad export
This commit is contained in:
parent
0bc9b7c7d4
commit
a5eab16fc3
1 changed files with 2 additions and 0 deletions
|
@ -287,6 +287,8 @@ class OpenSCADNewEngine(Base3DEngine):
|
|||
i = len(points)
|
||||
points.append(list(coords))
|
||||
output_ring.append(i)
|
||||
if output_ring[0] == output_ring[-1]:
|
||||
output_ring = output_ring[:-1]
|
||||
output_rings.append(output_ring)
|
||||
polygons.append(OpenScadCommand('polygon(%(points)r, %(rings)r, 10);' % {
|
||||
'points': points,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue