|
|
| Curve (occtl_graph_t *theGraph=nullptr, occtl_rep_id_t theId=occtl_rep_id_t{0}) noexcept |
| | Constructs a null reference (no graph, invalid id).
|
| |
|
| operator bool () const noexcept |
| | Returns true when the reference points into a valid graph.
|
| |
|
occtl_graph_t * | graph () const noexcept |
| | Borrows it — returns the graph pointer.
|
| |
|
occtl_rep_id_t | id () const noexcept |
| | Returns the representation id.
|
| |
| Curve | reversed () const |
| | Returns a reversed copy of this curve stored in the same graph.
|
| |
| Curve | transformed (const Transform &theTrsf) const |
| | Returns a transformed copy of this curve stored in the same graph.
|
| |
| Curve | translated (const Vector3 &theDelta) const |
| | Returns a translated copy of this curve stored in the same graph.
|
| |
| Curve | rotated (const Axis1Placement &theAxis, double theAngle) const |
| | Returns a rotated copy of this curve stored in the same graph.
|
| |
| Curve | scaled (const Point3 &theOrigin, double theFactor) const |
| | Returns a scaled copy of this curve stored in the same graph.
|
| |
| double | length () const |
| | Returns the curve length over its full parameter range.
|
| |
| std::pair< double, double > | project_point (const Point3 &thePoint) const |
| | Projects a point onto the curve.
|
| |
| double | parameter_of_point (const Point3 &thePoint) const |
| | Returns the parameter on the curve nearest to a given point.
|
| |
| occtl_curve_kind_t | kind () const |
| | Returns the kind of geometry.
|
| |
| int32_t | is_periodic () const |
| | Returns 1 when the curve is periodic, 0 otherwise.
|
| |
| int32_t | is_closed () const |
| | Returns 1 when the curve is closed, 0 otherwise.
|
| |
| occtl_geom_continuity_t | continuity () const |
| | Returns the geometric continuity class.
|
| |
| void | parameter_range (double &theUMin, double &theUMax) const |
| | Returns the parameter range [u_min, u_max] via out-parameters.
|
| |
| occtl_geom_line_t | as_line () const |
| | Extracts the underlying line.
|
| |
| occtl_geom_circle_t | as_circle () const |
| | Extracts the underlying circle.
|
| |
| occtl_geom_ellipse_t | as_ellipse () const |
| | Extracts the underlying ellipse.
|
| |
| occtl_geom_hyperbola_t | as_hyperbola () const |
| | Extracts the underlying hyperbola.
|
| |
| occtl_geom_parabola_t | as_parabola () const |
| | Extracts the underlying parabola.
|
| |
| TrimmedView | as_trimmed () const |
| | Extracts the parameter bounds from a trimmed curve.
|
| |
| OffsetView | as_offset () const |
| | Extracts the scalar offset and reference direction of an offset curve.
|
| |
| BSplineView | as_bspline () const |
| | Returns a §10.5 aggregate inspection view of a B-spline curve.
|
| |
| int32_t | bspline_degree () const |
| | Returns the polynomial degree.
|
| |
| size_t | bspline_pole_count () const |
| | Returns the number of poles.
|
| |
| size_t | bspline_knot_count () const |
| | Returns the number of distinct knot values.
|
| |
| int32_t | bspline_is_rational () const |
| | Returns 1 when the B-spline is rational (NURBS), 0 otherwise.
|
| |
| int32_t | bezier_degree () const |
| | Returns the Bezier polynomial degree.
|
| |
| size_t | bezier_pole_count () const |
| | Returns the number of Bezier poles.
|
| |
| int32_t | bezier_is_rational () const |
| | Returns 1 when the Bezier curve is rational, 0 otherwise.
|
| |
| std::vector< occtl_point3_t > | bspline_poles () const |
| | Copies all poles into a std::vector<occtl_point3_t>.
|
| |
| std::vector< double > | bspline_knots () const |
| | Copies all distinct knot values into a std::vector<double>.
|
| |
| std::vector< int32_t > | bspline_multiplicities () const |
| | Copies all knot multiplicities into a std::vector<int32_t>.
|
| |
| std::vector< double > | bspline_weights () const |
| | Copies all weights into a std::vector<double>.
|
| |
| std::vector< double > | bspline_flat_knots () const |
| | Copies the expanded (flat) knot sequence into a vector.
|
| |
| const occtl_point3_t * | bspline_poles_view (size_t &theCount) const |
| | Returns a zero-copy view of the poles array.
|
| |
|
std::vector< IntersectionPoint > | intersect_with (const Curve &theOther) const |
| |
| occtl_point3_t | eval_d0 (const double theU) const |
| | Evaluates the curve point at parameter theU.
|
| |
| std::pair< occtl_point3_t, occtl_vector3_t > | eval_d1 (const double theU) const |
| | Evaluates point and first derivative at theU.
|
| |
| std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t > | eval_d2 (const double theU) const |
| | Evaluates point, first, and second derivatives at theU.
|
| |
| std::tuple< occtl_point3_t, occtl_vector3_t, occtl_vector3_t, occtl_vector3_t > | eval_d3 (const double theU) const |
| | Evaluates point, first, second, and third derivatives at theU.
|
| |
| occtl_vector3_t | eval_dn (const double theU, const int32_t theN) const |
| | Returns the N-th derivative vector at theU.
|
| |
|
| static Curve | from_line (occtl_graph_t *graph, const occtl_geom_line_t &theLine) |
| | Constructs a curve from a line.
|
| |
| static Curve | from_circle (occtl_graph_t *graph, const occtl_geom_circle_t &theCircle) |
| | Constructs a curve from a circle.
|
| |
| static Curve | from_ellipse (occtl_graph_t *graph, const occtl_geom_ellipse_t &theEllipse) |
| | Constructs a curve from an ellipse.
|
| |
| static Curve | from_hyperbola (occtl_graph_t *graph, const occtl_geom_hyperbola_t &theHyperbola) |
| | Constructs a curve from a hyperbola.
|
| |
| static Curve | from_parabola (occtl_graph_t *graph, const occtl_geom_parabola_t &theParabola) |
| | Constructs a curve from a parabola.
|
| |
| static Curve | from_bspline (occtl_graph_t *graph, const occtl_curve_bspline_create_info_t &theInfo) |
| | Constructs a B-spline curve from the given create info.
|
| |
| static Curve | from_bezier (occtl_graph_t *graph, const occtl_curve_bezier_create_info_t &theInfo) |
| | Constructs a Bezier curve from the given create info.
|
| |
| static Curve | from_trimmed (occtl_graph_t *graph, const occtl_curve_trimmed_create_info_t &theInfo) |
| | Constructs a trimmed curve.
|
| |
| static Curve | from_offset (occtl_graph_t *graph, const occtl_curve_offset_create_info_t &theInfo) |
| | Constructs an offset curve.
|
| |
| static Curve | from_interpolation (occtl_graph_t *graph, const occtl_curve_interpolated_info_t &theInfo) |
| | Constructs a curve by interpolating through the given points.
|
| |
| static Curve | from_approximation (occtl_graph_t *graph, const occtl_curve_approximated_info_t &theInfo) |
| | Constructs a curve by approximating the given points.
|
| |
| static Curve | from_airfoil_naca4 (occtl_graph_t *graph, const occtl_curve_airfoil_naca4_info_t &theInfo) |
| | Constructs a NACA 4-digit airfoil profile as a B-spline curve.
|
| |
Non-owning reference to a 3D geometric curve stored in a graph.
Wraps one occtl_rep_id_t inside an occtl_graph_t*. Copying is shallow — both copies refer to the same graph representation.