declare private intersect() function as static to make clear it doesn't belong to a GeomCurve instance

This commit is contained in:
wmayer
2019-01-03 15:40:59 +01:00
parent d27c884c71
commit 43e5729f54
2 changed files with 4 additions and 4 deletions

View File

@@ -479,7 +479,7 @@ bool GeomCurve::intersect( GeomCurve * c,
bool GeomCurve::intersect(const Handle(Geom_Curve) curve1, const Handle(Geom_Curve) curve2,
std::vector<std::pair<Base::Vector3d, Base::Vector3d>>& points,
double tol) const
double tol)
{
// https://forum.freecadweb.org/viewtopic.php?f=10&t=31700
if (curve1->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) &&

View File

@@ -179,9 +179,9 @@ public:
void reverse(void);
protected:
bool intersect(const Handle(Geom_Curve) c, const Handle(Geom_Curve) c2,
std::vector<std::pair<Base::Vector3d, Base::Vector3d>>& points,
double tol = Precision::Confusion()) const;
static bool intersect(const Handle(Geom_Curve) c, const Handle(Geom_Curve) c2,
std::vector<std::pair<Base::Vector3d, Base::Vector3d>>& points,
double tol = Precision::Confusion());
};
class PartExport GeomBoundedCurve : public GeomCurve