Pad/Pocket: Allow extrude up to a datum plane

This commit is contained in:
jrheinlaender
2013-05-14 15:44:24 +04:30
committed by Stefan Tröger
parent b815656649
commit f954a51430
12 changed files with 161 additions and 153 deletions

View File

@@ -100,3 +100,9 @@ void Datum::onDocumentRestored()
Part::Feature::onDocumentRestored();
}
TopoDS_Shape Datum::getShape() const
{
Part::TopoShape sh = Shape.getShape();
sh.setPlacement(Placement.getValue());
return sh._Shape;
}

View File

@@ -57,8 +57,8 @@ public:
virtual const std::set<QString> getHint() = 0;
/// Return a shape representing the datum feature
//virtual const TopoDS_Shape getShape() const = 0;
/// Return a shape including Placement representing the datum feature
TopoDS_Shape getShape() const;
protected:
void onChanged (const App::Property* prop);