Pad/Pocket: Allow extrude up to a datum plane
This commit is contained in:
committed by
Stefan Tröger
parent
b815656649
commit
f954a51430
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user