Added Reversed button to Pocket UI if the sketch plane is a datum plane

This commit is contained in:
jrheinlaender
2013-05-11 20:17:49 +04:30
committed by Stefan Tröger
parent 6915d8b734
commit 0bcdb0511f
8 changed files with 40 additions and 6 deletions

View File

@@ -930,6 +930,14 @@ bool SketchBased::isParallelPlane(const TopoDS_Shape& s1, const TopoDS_Shape& s2
return false;
}
bool SketchBased::isSupportDatum() const
{
Part::Feature* SupportObject = getSupport();
if (SupportObject == NULL)
throw Base::Exception("No support in Sketch!");
return isDatum(SupportObject);
}
TopoDS_Shape SketchBased::refineShapeIfActive(const TopoDS_Shape& oldShape) const
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()