tataratat / splinepy

Library for prototyping spline geometries of arbitrary dimensions and degrees, and IGA
https://tataratat.github.io/splinepy
Other
47 stars 13 forks source link

Support knot insertion up to C^-1 #298

Closed j042 closed 11 months ago

j042 commented 11 months ago

Overview

Adds support for C^-1. Changes of this PR also fixes #215. In cpp, to extract cp ids for bezier patches, you now need multiplicity informations - This is available from KnotVector. For #297, we can also wrap this.

Addressed issues

Showcase

A short / one-liner example to highlight the (new) feature

# bspline with no knots at 1.5
assert all(bspline.insert_knots(0, [1.5] * (degree + 1)))

Known ToDos

Checklists

j042 commented 11 months ago

test freezes @ windows-debug build

jzwar commented 11 months ago

LGTM, thanks for handling this. Please fix tests before merging