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

Plotting functions on splines is too complicated #291

Closed jzwar closed 9 months ago

jzwar commented 11 months ago

Plotting a function on a spline is very complicated at the moment, as every time the resolution and on case need to be dealt with. It is not possible to just plot the same function on a Multipatch. That makes it very hard for new users to understand.

I think it would be nice to have a layout like this

def foo(spline, queries):
  # Function in physical space
  x = spline.evaluate(queries)
  return x*x

def bar(spline, queries):
  # Function defined in parametric space
  return queries*queries
j042 commented 9 months ago

318