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:
@@ -274,14 +274,10 @@ int SketchObject::getAxisCount(void) const
|
||||
|
||||
Base::Axis SketchObject::getAxis(int axId) const
|
||||
{
|
||||
const std::vector< Part::Geometry * > &vals = getInternalGeometry();
|
||||
if (axId == H_Axis) {
|
||||
return Base::Axis(Base::Vector3d(0,0,0), Base::Vector3d(1,0,0));
|
||||
}
|
||||
else if (axId == V_Axis) {
|
||||
return Base::Axis(Base::Vector3d(0,0,0), Base::Vector3d(0,1,0));
|
||||
}
|
||||
if (axId == H_Axis || axId == V_Axis || axId == N_Axis)
|
||||
return Part::Part2DObject::getAxis(axId);
|
||||
|
||||
const std::vector< Part::Geometry * > &vals = getInternalGeometry();
|
||||
int count=0;
|
||||
for (std::vector<Part::Geometry *>::const_iterator geo=vals.begin();
|
||||
geo != vals.end(); geo++)
|
||||
|
||||
Reference in New Issue
Block a user