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

Feature for uniform knot refinement #395

Closed FSchwar closed 7 months ago

FSchwar commented 8 months ago

Overview

Using the insert_knots function for uniform knot refinements in arbitrary dimensions.

Addressed issues

Showcase

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

import splinepy as _spp

example_spline = _spp.helpme.create.box(3, 1, 2)
example_spline = example_spline.bspline
example_spline.uniform_refine(degree_of_refinement = [1, 5], parametric_dimensions = [1, 2])
example_spline.show()

Checklists

j042 commented 7 months ago

maybe we can a simple test that checks number of elements. @OberGue can you add this in #348