declare private intersect() function as static to make clear it doesn't belong to a GeomCurve instance
This commit is contained in:
@@ -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)) &&
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user