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

From 2D sdf to 3D sdf #171

Open
zchli9 opened this issue Oct 15, 2024 · 1 comment
Open

From 2D sdf to 3D sdf #171

zchli9 opened this issue Oct 15, 2024 · 1 comment

Comments

@zchli9
Copy link

zchli9 commented Oct 15, 2024

Hello, I am a beginner in Waterlily and I'm working on an underwater robot, but I'm having trouble modeling it in sdf. I want to generate a 3D geometry using several cross-sections (maybe more than 3 planes) of this geometry. Is there some way to generate a smooth transition between those 2D planes (these planes are different shapes and sizes)?Or other way to help me model it? Thank you very much!

@weymouth
Copy link
Collaborator

If the body is pretty slender and axisymmetric, then you could use the SDF for a line segment and define a variable thickness thk(x). See this video https://www.youtube.com/watch?v=PMltMdi1Wzg. I did something similar for the shark example here https://julialang.org/blog/2021/08/sharks/.

If the shape isn't axisymmetric, then I think you can make thk(x,theta), but I'm not sure how to implement this. Honestly, you might be better asking that video maker than me. ;-)

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