Love the project but some questions about sweeps #170
vinitjogani
started this conversation in
How To
Replies: 2 comments
-
I have added a ![]() Note that the mapping of the [0, 1] interval on the wire is not necessarily equally spaced (as you can see in the image). I would be curious to see your 2-rail sweep - and potentially add it as a recipe in the doc. |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, I do not really use these. Do you have some example of a use case (and potentially an API you have seen and like?) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I love how simple the API for this project is -- very intuitive compared to some of the others I have tried. Everything just works as you'd expect. Kudos!
That said, I am looking to do some advanced sweeps. In particular, I want to do a 2-rail sweep where there is an inner and outer wire, and a profile which has to be resized so that it spans the cross section between the wires.
Now I have some custom code that sort of achieves this in cadquery by just computing a bunch of cross sections at different intervals and lofting them through. However, to implement that in Replicad, I need a
getPositionAt(...)
function on a wire where I can pass in a 0-1 value and use that to sub-divide the wire and get positions at different thresholds. Is there something similar in the API that I can use?Also, are there any features for bending, shearing, tapering, etc. of models?
Beta Was this translation helpful? Give feedback.
All reactions