
Thu, 09/05/2002 - 09:04
Forums:
Hello,
I wonder if it is possible to create a curve for which I know analytical equations.
For instance, I want to create
the curve corresponding to :
x(t)=0
y(t)=t
z(t)=sin(t)
Of course, I do not want to use bspline interpolation for that purpose (I already know how to do it !).
Thanks,
Frederic.
Thu, 09/05/2002 - 14:44
Yes it's possible, you just have to subclass Geom_Curve and re-implement all the pure virtual method (D0, D1, D2,...) so you will have to know the first derivative,... and then you will be able to use you Geom_CustomCurve and build an edge from it, display it using the AIS package, ...
Good Luck,
Francois.
Thu, 09/05/2002 - 16:47
Yes, it is true, you can do that.
The only problem is that you will not be able to save/load any Shape or Geometry created with Geom_CustomCurve without changing the whole OpenCASCADE code for reading/saving the geometry.