summaryrefslogtreecommitdiff
path: root/csgterm.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-24 17:40:19 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-24 17:40:19 (GMT)
commitcf15ce518535837fa993ce9a6c631e6c5755165a (patch)
treef68e77b706292de4b52d1c38f19e86ce7d487d93 /csgterm.cc
parent65c7db49c97ee3b0f79ffdd10a7396c3d7fb82a3 (diff)
Clifford Wolf:
Fixed CSG product normalization git-svn-id: http://svn.clifford.at/openscad/trunk@17 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'csgterm.cc')
-rw-r--r--csgterm.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/csgterm.cc b/csgterm.cc
index 359d3b5..826ec44 100644
--- a/csgterm.cc
+++ b/csgterm.cc
@@ -69,11 +69,13 @@ CSGTerm *CSGTerm::normalize()
y->unlink();
}
- do {
+ while (1) {
t2 = t1->normalize_tail();
t1->unlink();
+ if (t1 == t2)
+ break;
t1 = t2;
- } while (t1 != t2);
+ }
return t1;
}
contact: Jan Huwald // Impressum