splinepy icon indicating copy to clipboard operation
splinepy copied to clipboard

revolve with angle=-180

Open j042 opened this issue 1 year ago • 0 comments

@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

j042 avatar May 04 '24 09:05 j042