Share code for finding a body containing a feature
This commit is contained in:
committed by
Stefan Tröger
parent
16e4ce20f0
commit
ffc6cc2f23
@@ -232,6 +232,12 @@ const bool Body::isAllowed(const App::DocumentObject* f)
|
||||
}
|
||||
|
||||
|
||||
Body* Body::findBodyOf(const App::DocumentObject* feature)
|
||||
{
|
||||
return static_cast<Body*>(BodyBase::findBodyOf(feature));
|
||||
}
|
||||
|
||||
|
||||
void Body::addFeature(App::DocumentObject *feature)
|
||||
{
|
||||
insertFeature (feature, Tip.getValue(), /*after = */ true);
|
||||
|
||||
Reference in New Issue
Block a user