PartDesign: Refactor pattern features and gui
- remove StdDirection,StdAxis and StdMirrorPlane properties - support sketch H_Axis, V_Axis, N_axis as valid references in patterns - polish reference selection gui (unified for standard axes and custom references)
This commit is contained in:
@@ -53,6 +53,7 @@ using namespace Part;
|
||||
|
||||
const int Part2DObject::H_Axis = -1;
|
||||
const int Part2DObject::V_Axis = -2;
|
||||
const int Part2DObject::N_Axis = -3;
|
||||
|
||||
PROPERTY_SOURCE(Part::Part2DObject, Part::Feature)
|
||||
|
||||
@@ -215,6 +216,9 @@ Base::Axis Part2DObject::getAxis(int axId) const
|
||||
else if (axId == V_Axis) {
|
||||
return Base::Axis(Base::Vector3d(0,0,0), Base::Vector3d(0,1,0));
|
||||
}
|
||||
else if (axId == N_Axis) {
|
||||
return Base::Axis(Base::Vector3d(0,0,0), Base::Vector3d(0,0,1));
|
||||
}
|
||||
return Base::Axis();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user