From ed9f4483988a2c14be40124b1067a6252faa2775 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sun, 15 Mar 2009 21:11:06 -0800 Subject: [PATCH] Oops, need to remap plane face entities when stepping and repeating shells. [git-p4: depot-paths = "//depot/solvespace/": change = 1930] --- groupmesh.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/groupmesh.cpp b/groupmesh.cpp index 440ad80c..e2518bf3 100644 --- a/groupmesh.cpp +++ b/groupmesh.cpp @@ -88,6 +88,16 @@ void Group::GenerateShellForStepAndRepeat(void) { trans.Minus(q.Rotate(trans)), q); } + // We need to rewrite any plane face entities to the transformed ones. + SSurface *ss; + for(ss = transd.surface.First(); ss; ss = transd.surface.NextAfter(ss)){ + hEntity face = { ss->face }; + if(face.v == Entity::NO_ENTITY.v) continue; + + face = Remap(face, remap); + ss->face = face.v; + } + if(src->meshCombine == COMBINE_AS_DIFFERENCE) { scratch->MakeFromDifferenceOf(soFar, &transd); } else {