Moved Body::isAfterTip() to BodyBase
This commit is contained in:
committed by
Stefan Tröger
parent
ef76cf8b52
commit
58822e07fd
@@ -191,17 +191,6 @@ App::DocumentObject* Body::getNextSolidFeature(App::DocumentObject *start, const
|
||||
return *it;
|
||||
}
|
||||
|
||||
const bool Body::isAfterTip(const App::DocumentObject *f) {
|
||||
App::DocumentObject* tipFeature = Tip.getValue();
|
||||
if (tipFeature == NULL)
|
||||
return true;
|
||||
|
||||
std::vector<App::DocumentObject*> features = Model.getValues();
|
||||
std::vector<App::DocumentObject*>::const_iterator it = std::find(features.begin(), features.end(), f);
|
||||
std::vector<App::DocumentObject*>::const_iterator tip = std::find(features.begin(), features.end(), tipFeature);
|
||||
return (it > tip);
|
||||
}
|
||||
|
||||
const bool Body::isMemberOfMultiTransform(const App::DocumentObject* f)
|
||||
{
|
||||
if (f == NULL)
|
||||
|
||||
@@ -78,9 +78,6 @@ public:
|
||||
// Return the shape of the feature preceding this feature
|
||||
//const Part::TopoShape getPreviousSolid(const PartDesign::Feature* f);
|
||||
|
||||
/// Return true if the feature is located after the current Tip feature
|
||||
const bool isAfterTip(const App::DocumentObject *f);
|
||||
|
||||
/// Add the feature into the body at the current insert point (Tip feature)
|
||||
void addFeature(App::DocumentObject* feature);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user