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

CATS-XML IO #206

Closed jzwar closed 1 year ago

jzwar commented 1 year ago

Overview

Support CATS-type xml format.

Showcase

import splinepy as sp
cone = sp.helpme.create.cone(5,10,angle=180)
sp.io.cats.export("test.xml", cone)
list_of_splines = sp.io.cats.load("test.xml")

Checklists

j042 commented 1 year ago

Have you tried a round-trip? load fails

jzwar commented 1 year ago

Have you tried a round-trip? load fails

There is one in the test. However, I realized, that the SplineLib example does not work because of a default root setting. I updated the code accordingly and now everything should be fine.