Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bezier Extraction matrices for 0th degree spline #409

Open
jzwar opened this issue Apr 10, 2024 · 1 comment
Open

Bezier Extraction matrices for 0th degree spline #409

jzwar opened this issue Apr 10, 2024 · 1 comment

Comments

@jzwar
Copy link
Collaborator

jzwar commented Apr 10, 2024

See #406 for more detail.

Bezier extraction matrix fails for following spline

test = sp.BSpline(
    degrees=[0, 0],
    control_points=[
        [0], [1], [2], [3],
    ],
    knot_vectors=[[0, .5, 1], [0, .5, 1]]
)
@mkofler96
Copy link
Contributor

Is this the same reason why I cannot elevate the degree of a 0th degree BSpline?

The following code gives a segmentation fault:

test = sp.BSpline(
    degrees=[0],
    control_points=[
        [0],[1],[2]
    ],
    knot_vectors=[[0, .33, 0.66, 1]]
)

test.elevate_degrees([0])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants