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

Use spline as outer border of a 2D object? #3

Open
steve8x8 opened this issue Jul 23, 2024 · 1 comment
Open

Use spline as outer border of a 2D object? #3

steve8x8 opened this issue Jul 23, 2024 · 1 comment

Comments

@steve8x8
Copy link

Is there a way to use the spline module to create a smoothed version of, say, polygon()?
I found spline_ribbon() but that will only create the border, and I don't want to use hull() as that would drop too many details.

Any suggestions? (Did I overlook the obvious?)

@teejaydub
Copy link
Owner

Sure. Do you have a list of 2D points and you want to make a 2D shape that is spline-smoothed through those points?

Instead of doing polygon(points), I think you can just do polygon(smooth(points, loop=true)).

If that doesn't work, post a code example and I'll have a look.

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