tataratat / splinepy

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

revolve with angle=-180 #426

Closed j042 closed 4 months ago

j042 commented 4 months ago

@clemens-fricke had an issue

import numpy as np
import splinepy as spp

cps = np.array([[0.0, 0.0], [0.0, height]])
cps_ = cps.copy() * -1
weights = np.ones([cps.shape[0]])
knots = np.repeat([0.0, 1.0], 2)
proto = spp.NURBS(
    degrees=[1],
    control_points=cps,
    weights=weights,
    knot_vectors=[knots],
)
rev_proto = proto.create.revolved(angle=-180)
rev_proto.show()

This is due to a wrong number of minimum knot span calculation. fix coming