Part: Geometry - Curve member to calculate the normal at Point
============================================================== Convenience member function combining closestParameter and normalAt using parameter.
This commit is contained in:
@@ -698,6 +698,14 @@ bool GeomCurve::normalAt(double u, Base::Vector3d& dir) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GeomCurve::normalAt(const Base::Vector3d & curvepoint, Base::Vector3d & dir) const
|
||||
{
|
||||
double u;
|
||||
closestParameter(curvepoint, u);
|
||||
|
||||
return normalAt(u, dir);
|
||||
}
|
||||
|
||||
bool GeomCurve::intersect( const GeomCurve *c,
|
||||
std::vector<std::pair<Base::Vector3d, Base::Vector3d>>& points,
|
||||
double tol) const
|
||||
|
||||
@@ -197,6 +197,7 @@ public:
|
||||
double curvatureAt(double u) const;
|
||||
double length(double u, double v) const;
|
||||
bool normalAt(double u, Base::Vector3d& dir) const;
|
||||
bool normalAt(const Base::Vector3d & curvepoint, Base::Vector3d& dir) const;
|
||||
bool intersect(const GeomCurve *c,
|
||||
std::vector<std::pair<Base::Vector3d, Base::Vector3d>>& points,
|
||||
double tol = Precision::Confusion()) const;
|
||||
|
||||
Reference in New Issue
Block a user