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

3D curves / surfaces? #8

Open
lf94 opened this issue May 31, 2022 · 2 comments
Open

3D curves / surfaces? #8

lf94 opened this issue May 31, 2022 · 2 comments

Comments

@lf94
Copy link

lf94 commented May 31, 2022

Any ideas how to do that in RepliCAD? One of my products (I call them products but they are not sold or anything) which I've done in curv uses smooth blending of ellipsoids to achieve these surfaces but I'm beginning to think I should properly specify them...

Example of my product:

Screenshot from 2021-10-19 17-33-12

Screenshot from 2021-10-21 16-22-09

What you think? Thanks!

@sgenoud
Copy link
Owner

sgenoud commented Jun 1, 2022

I am not 100% sure on how to do it, but I can see different possible approaches.

First, as you probably have an analytic version of the shape you could generate a set of points from the equation and then use (a not yet replicad wrapped) function to generate a Bspline surface out of the points. It might be a fun, different API to provide in a more user friendly way to endusers.

You could also define different 2D slices with sketchParametricFunction and then sweep through them.

There is also an API in opencascade to constrain a surface by some points and lines - it might be exposed to end user with a nice API.

@LeeAlephium
Copy link

LeeAlephium commented Jun 1, 2022

First, as you probably have an analytic version of the shape you could generate a set of points from the equation and then use (a not yet replicad wrapped) function to generate a Bspline surface out of the points.

:oooo Yes! This would work I think! Really it's just the initial body that needs it (it's two blobs) - the rest can be cut out regularly and then I can use fillets to smooth out the cuts! Actually this would open a whole range of new designs within open cascade if I added some code to be able to "merge" shapes and generate points...!

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

3 participants