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

multipatch boundary id magic number #416

Open j042 opened 7 months ago

j042 commented 7 months ago

BID=1 doesn't seem to have any effect, when you try to call mp.boundary_multipatch(1). is it because of default value -1?

jzwar commented 7 months ago

Yes. BID starts at 1. Hence, 1 is default. Should you have more than one boundary, it should only return the first one, though.

j042 commented 7 months ago

Ok, I guess it is helpful. Maybe we should add a note. I tried to set a certain boundary to BID=1, and I kept getting all the the boundaries. I will add this to upcoming clean up