Renamed SketchBased::Base property to BaseFeature because of name clash with Revolution::Base property
This commit is contained in:
committed by
Stefan Tröger
parent
9b29b9b5b0
commit
cb14c7ae65
@@ -37,6 +37,7 @@
|
||||
#include "Body.h"
|
||||
#include "Feature.h"
|
||||
|
||||
#include <Base/Console.h>
|
||||
|
||||
|
||||
namespace PartDesign {
|
||||
@@ -61,17 +62,6 @@ TopoDS_Shape Feature::getSolid(const TopoDS_Shape& shape)
|
||||
return TopoDS_Shape();
|
||||
}
|
||||
|
||||
PartDesign::Body* Feature::getBody()
|
||||
{
|
||||
std::vector<App::DocumentObject*> bodies = this->getDocument()->getObjectsOfType(PartDesign::Body::getClassTypeId());
|
||||
for (std::vector<App::DocumentObject*>::const_iterator b = bodies.begin(); b != bodies.end(); b++) {
|
||||
PartDesign::Body* body = static_cast<PartDesign::Body*>(*b);
|
||||
if (body->hasFeature(this))
|
||||
return body;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const gp_Pnt Feature::getPointFromFace(const TopoDS_Face& f)
|
||||
{
|
||||
if (!f.Infinite()) {
|
||||
|
||||
Reference in New Issue
Block a user