Skip to content

Add BSpline curve data extraction from Edge - #219

Open
janbraiins wants to merge 2 commits into
bschwind:mainfrom
janbraiins:feature/bspline-data-extraction
Open

Add BSpline curve data extraction from Edge#219
janbraiins wants to merge 2 commits into
bschwind:mainfrom
janbraiins:feature/bspline-data-extraction

Conversation

@janbraiins

Copy link
Copy Markdown

Summary

  • Add Edge::bspline_data() method to extract degree, control points (poles), flat knot vector, and weights from B-spline curves
  • Includes automatic conversion of non-BSpline curves via GeomConvert
  • Uses bulk extraction functions for efficiency (single FFI call for all poles, knots, or weights instead of per-element calls)

Jan Čapek added 2 commits February 14, 2026 12:45
Add wrapper functions for extracting B-spline curve data:
- Edge_BSplineCurve: get BSpline handle from edge with auto-conversion
- Degree, NbPoles, NbKnots, IsRational property accessors
- Bulk extraction: Poles, KnotSequence, Weights
- Individual accessors: Pole, Knot, Multiplicity, Weight
High-level API for extracting B-spline curve data from edges:
- BSplineData struct with degree, poles, knots, and optional weights
- Edge::bspline_data() method using bulk FFI extraction for efficiency
@janbraiins
janbraiins force-pushed the feature/bspline-data-extraction branch from 1be59de to 17d2567 Compare February 14, 2026 12:46
@janbraiins

Copy link
Copy Markdown
Author

If the bspline_data() is too much, I can just leave the pure FFI extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant