Oops, need to remap plane face entities when stepping and repeating

shells.

[git-p4: depot-paths = "//depot/solvespace/": change = 1930]
solver
Jonathan Westhues 2009-03-15 21:11:06 -08:00
parent acadc0a918
commit ed9f448398
1 changed files with 10 additions and 0 deletions

View File

@ -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 {