base class for CAD curves.
const TopoDS_Edge & GetOccEdge() const
The underlying OpenCASCADE edge, for engine-internal use.
std::array< NekDouble, 2 > GetBounds() override
Returns the minimum and maximum parametric coords t of the curve.
NekDouble GetMinDistance(std::array< NekDouble, 3 > &xyz) override
Locates a point xyz in the parametric space. returns the distance to the point.
static CADCurveSharedPtr create()
std::array< NekDouble, 6 > BoundingBox(NekDouble scale) override
Returns the bounding box of a curve enlarged by 5e-3mm * scale.
std::array< NekDouble, 6 > GetMinMax() override
Gets the start and end of the curve.
void Initialise(int i, TopoDS_Shape in)
NekDouble loct(std::array< NekDouble, 3 > xyz, NekDouble &t) override
locates a point in the parametric space. returns the distance to the point and passes t by reference ...
std::array< NekDouble, 2 > m_b
store the parametric bounds of the curve
NekDouble Curvature(NekDouble t) override
Calculates the radius of curvature of the curve at point t.
std::array< NekDouble, 9 > D2(NekDouble t) override
Gets the second derivatives at t.
NekDouble tAtArcLength(NekDouble s) override
Calculates the parametric coordinate and arclength location defined by s.
Handle(Geom_Curve) m_c
object used for reverse lookups
NekDouble Length(NekDouble ti, NekDouble tf) override
Calculates the arclength between the two paremetric points ti and tf. ti must be less than tf.
std::shared_ptr< CADCurve > CADCurveSharedPtr