FreeCAD: master ec03fb54
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
Abdullah Tahiri | wmayer | master | 2014-11-27 16:15:14 | master a8dd528c |
Changeset | Part: Extension of Geometry::Curve Part: Extension of Geometry::Curve to wrap more functions of OCC Apart from: bool tangent(double u, gp_Dir&) const; that was already implemented, now it also implements: Base::Vector3d pointAtParameter(double u) const; Base::Vector3d firstDerivativeAtParameter(double u) const; Base::Vector3d secondDerivativeAtParameter(double u) const; bool normal(double u, gp_Dir& dir) const; bool closestParameter(Base::Vector3d point, double &u); i.e. apart from giving the tangent vector for a given curve at parameter value u, it also gives: - The point cartesian coordinates of the curve point at parameter value u - The vector of the first derivative at parameter value u - The vector of the second derivative at parameter value u - The normal vector to the curve at parameter value u - The parameter value of a curve closest ot a given point Code cleanup: Changing Trim functionality of Ellipse to use OCC calculations Part Curve functions extension: closestParameterToBasicCurve It provides the parameter of the curve closest to a given point. If the curve is a Trimmed curve, the parameter of the basic underlaying curve closest to the point is provided. |
|||
mod - src/Mod/Part/App/Geometry.cpp | Diff File | |||
mod - src/Mod/Part/App/Geometry.h | Diff File | |||
mod - src/Mod/Sketcher/App/SketchObject.cpp | Diff File |