PD: fix const correctness in ProfileBased
This commit is contained in:
@@ -918,7 +918,7 @@ bool ProfileBased::isParallelPlane(const TopoDS_Shape & s1, const TopoDS_Shape &
|
||||
return false;
|
||||
}
|
||||
|
||||
double ProfileBased::getReversedAngle(const Base::Vector3d & b, const Base::Vector3d & v)
|
||||
double ProfileBased::getReversedAngle(const Base::Vector3d & b, const Base::Vector3d & v) const
|
||||
{
|
||||
try {
|
||||
Part::Feature* obj = getVerifiedObject();
|
||||
@@ -947,7 +947,7 @@ double ProfileBased::getReversedAngle(const Base::Vector3d & b, const Base::Vect
|
||||
}
|
||||
|
||||
void ProfileBased::getAxis(const App::DocumentObject * pcReferenceAxis, const std::vector<std::string> &subReferenceAxis,
|
||||
Base::Vector3d& base, Base::Vector3d& dir, ProfileBased::ForbiddenAxis checkAxis)
|
||||
Base::Vector3d& base, Base::Vector3d& dir, ProfileBased::ForbiddenAxis checkAxis) const
|
||||
{
|
||||
auto verifyAxisFunc = [](ProfileBased::ForbiddenAxis checkAxis, const gp_Pln& sketchplane, const gp_Dir& dir) {
|
||||
switch (checkAxis) {
|
||||
|
||||
@@ -151,10 +151,10 @@ protected:
|
||||
|
||||
|
||||
/// Used to suggest a value for Reversed flag so that material is always removed (Groove) or added (Revolution) from the support
|
||||
double getReversedAngle(const Base::Vector3d& b, const Base::Vector3d& v);
|
||||
double getReversedAngle(const Base::Vector3d& b, const Base::Vector3d& v) const;
|
||||
/// get Axis from ReferenceAxis
|
||||
void getAxis(const App::DocumentObject* pcReferenceAxis, const std::vector<std::string>& subReferenceAxis,
|
||||
Base::Vector3d& base, Base::Vector3d& dir, ForbiddenAxis checkAxis);
|
||||
Base::Vector3d& base, Base::Vector3d& dir, ForbiddenAxis checkAxis) const;
|
||||
|
||||
void onChanged(const App::Property* prop);
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user