PD: fix ProfileBased::getAxis
Introduce an enum to verify the axis depending on the used context. * For helix no restriction is needed * For Pad/Pocket the axis must not be parallel with the sketch plane * For Revolve/Groove the axis must not be perpendicular with the sketch plane
This commit is contained in:
@@ -355,7 +355,7 @@ void Helix::updateAxis(void)
|
||||
const std::vector<std::string>& subReferenceAxis = ReferenceAxis.getSubValues();
|
||||
Base::Vector3d base;
|
||||
Base::Vector3d dir;
|
||||
getAxis(pcReferenceAxis, subReferenceAxis, base, dir, false);
|
||||
getAxis(pcReferenceAxis, subReferenceAxis, base, dir, ForbiddenAxis::NoCheck);
|
||||
|
||||
Base.setValue(base.x, base.y, base.z);
|
||||
Axis.setValue(dir.x, dir.y, dir.z);
|
||||
|
||||
Reference in New Issue
Block a user