Replies: 5 comments 13 replies
-
Thank you for your interest, @Alphapage! Before I go into specifics, a general note: Right now, only low-level tools to build geometry exist, for the most part (except sweep, but that's pretty limited, as you discovered). Building higher-level tools on top of them to make this more convenient will happen gradually. But for now, what you're trying to do is pretty involved. First, a tetrahedron: This one's actually easy, because there's already a builder method to do it (it's used in various unit tests, where a basic solid is needed. Check out Second, a pyramid: That is much the same as a tetrahedron, except that one of the faces needs to be a polygon instead of a triangle. You can look at the code that builds the tetrahedron for inspiration. Some notes:
Lastly, the cone. I agree that it's probably not possible. I don't think we can currently represent the geometry of the side face. I've made a bunch of notes on stuff that's missing or needs to be improved while writing this. I will open some issues to track those improvements later, probably on Monday. Issues are for tracking actionable improvements. My answer mentions a few of those, but I prefer to open more specific issues for those later. Converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Well, finally my goal to create a pyramid is to glue 2 tetrahedrons. Here is my code snippet: let handle_pyramid = {
let shell = Shell::tetrahedron(
[[0., 0., 0.], [0., 1., 0.], [1., 0., 0.], [0.5, 0.5, 1.]],
services,
)
.insert(services);
let shell2 = Shell::tetrahedron(
[[1., 1., 0.], [0., 1., 0.], [1., 0., 0.], [0.5, 0.5, 1.]],
services,
)
.insert(services);
let solid = Solid::empty();
solid.add_shell(shell.shell).insert(services);
solid.add_shell(shell2.shell).insert(services)
}; But I only get the second tetrahedron drawn instead of both! Sorry to disturb you and thank you to give me a little of your precious time. |
Beta Was this translation helpful? Give feedback.
-
Yes my mistake sorry because of the chaining. |
Beta Was this translation helpful? Give feedback.
-
I'm a little lost now: I exported to 3mf, stl and obj. |
Beta Was this translation helpful? Give feedback.
-
I marked all relevant methods of the operations API as And I've opened an issue about validating the face orientation of This is all that was left on the list I made from this discussion. As far as I know, every problem we saw here has been addressed (in the sense that at least an issue was opened to track it). |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to make pyramid which seems to be made of multiple tetrahedrons.
I created a sketch, but I don't know how to sweep to only point to one vector or to sweep to another sketch.
Didn't try, but it seems to be impossible to make a cone ?
Am I true ?
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions