Skip to content

Commit

Permalink
declare private intersect() function as static to make clear it doesn…
Browse files Browse the repository at this point in the history
…'t belong to a GeomCurve instance
  • Loading branch information
wwmayer committed Jan 3, 2019
1 parent 2aa4f8c commit b845553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Part/App/Geometry.cpp
Expand Up @@ -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)) &&
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Part/App/Geometry.h
Expand Up @@ -179,9 +179,9 @@ class PartExport GeomCurve : public Geometry
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
Expand Down

0 comments on commit b845553

Please sign in to comment.