if (!aSub)
return aDummy;
- std::shared_ptr<SketchPlugin_Point> aPointFeature =
- std::dynamic_pointer_cast<SketchPlugin_Point>(theFeature);
-
const Slvs_Entity& aSubEnt =
std::dynamic_pointer_cast<SolveSpaceSolver_EntityWrapper>(aSub)->entity();
- return EntityWrapperPtr(new SolveSpaceSolver_EntityWrapper(aPointFeature, aPoint, aSubEnt));
+ return EntityWrapperPtr(new SolveSpaceSolver_EntityWrapper(theFeature, aPoint, aSubEnt));
}
// wrong entity
}
SolveSpaceSolver_EntityWrapper::SolveSpaceSolver_EntityWrapper(
- const std::shared_ptr<SketchPlugin_Point> theFeature,
- const AttributePtr theAttribute,
+ const FeaturePtr thePointFeature,
+ const AttributePtr thePointAttribute,
const Slvs_Entity& theEntity)
: myEntity(theEntity)
{
- myBaseFeature = FeaturePtr(theFeature);
- myBaseAttribute = theAttribute;
+ myBaseFeature = thePointFeature;
+ myBaseAttribute = thePointAttribute;
}
#include <SketchSolver_IEntityWrapper.h>
#include <SolveSpaceSolver_Solver.h>
-#include <SketchPlugin_Point.h>
-
/**
* Wrapper providing operations with SolveSpace entities.
*/
SolveSpaceSolver_EntityWrapper(const AttributePtr theAttribute, const Slvs_Entity& theEntity);
/// \brief Constructor useful for SketchPlugin_Point only
- SolveSpaceSolver_EntityWrapper(const std::shared_ptr<SketchPlugin_Point> theFeature,
- const AttributePtr theAttribute,
+ SolveSpaceSolver_EntityWrapper(const FeaturePtr thePointFeature,
+ const AttributePtr thePointAttribute,
const Slvs_Entity& theEntity);
/// \brief Return SolveSpace entity