A workplane can now be defined from a workplane defined by point and normal

It is now possible to create a "New Group | Sketch in New Workplane" from
an existing workplane defined using a point and a nowmal. Before we used to
hit the `ssassert(false, "Unexpected workplane subtype");`.

This makes 4308dc136b more complete and
is related to #1120, #1048 and
https://github.com/solvespace/solvespace/pull/1054
pull/1209/head
ruevs 2022-02-01 18:29:34 +02:00 committed by phkahler
parent 465506670c
commit 026f936989
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ void Group::MenuGroup(Command id, Platform::Path linkFile) {
g.predef.negateV = wrkplg->predef.negateV; g.predef.negateV = wrkplg->predef.negateV;
} else if(wrkplg->subtype == Subtype::WORKPLANE_BY_POINT_ORTHO) { } else if(wrkplg->subtype == Subtype::WORKPLANE_BY_POINT_ORTHO) {
g.predef.q = wrkplg->predef.q; g.predef.q = wrkplg->predef.q;
} else if(wrkplg->subtype == Subtype::WORKPLANE_BY_POINT_NORMAL) {
g.predef.q = wrkplg->predef.q;
g.predef.entityB = wrkplg->predef.entityB;
} else ssassert(false, "Unexpected workplane subtype"); } else ssassert(false, "Unexpected workplane subtype");
} }
} else if(gs.anyNormals == 1 && gs.points == 1 && gs.n == 2) { } else if(gs.anyNormals == 1 && gs.points == 1 && gs.n == 2) {