Part: Geometry - Extend Geometry Curve to query the value at parameter point directly from D0
============================================================================================= Use the geometry specific D0 to calculate value at parameter point.
This commit is contained in:
@@ -634,6 +634,15 @@ bool GeomCurve::tangent(double u, Base::Vector3d& dir) const
|
||||
return false;
|
||||
}
|
||||
|
||||
Base::Vector3d GeomCurve::value(double u) const
|
||||
{
|
||||
Handle(Geom_Curve) c = Handle(Geom_Curve)::DownCast(handle());
|
||||
|
||||
const gp_Pnt &point = c->Value(u);
|
||||
|
||||
return Base::Vector3d(point.X(),point.Y(),point.Z());
|
||||
}
|
||||
|
||||
Base::Vector3d GeomCurve::pointAtParameter(double u) const
|
||||
{
|
||||
Handle(Geom_Curve) c = Handle(Geom_Curve)::DownCast(handle());
|
||||
|
||||
@@ -203,6 +203,8 @@ public:
|
||||
|
||||
void reverse(void);
|
||||
|
||||
Base::Vector3d value(double u) const;
|
||||
|
||||
protected:
|
||||
static bool intersect(const Handle(Geom_Curve) c, const Handle(Geom_Curve) c2,
|
||||
std::vector<std::pair<Base::Vector3d, Base::Vector3d>>& points,
|
||||
|
||||
Reference in New Issue
Block a user