sweeping a rect with guaranteed edge profile

72 views
Skip to first unread message

Nelis Willers

unread,
Oct 26, 2021, 1:34:44 AM10/26/21
to CadQuery
The sweep examples seem to center the swept shape on the path.

Looking at the documentation there is mention of outer and inner wires, in addition to the path:
sweep(outerWireinnerWirespathmakeSolid=TrueisFrenet=False)
What are these inner and outer wires?

Is it possible to define a sweep so that the edge of the shape is along a prescribed path?
In other words, can I define a rect sweep where a solid's 'inner' surface edge is guaranteed to lie along a specific curve?

It seems conceptually feasible to calculate a secondary sweep path such that the swept solid's boundary will lie along the required path.  Is this the way to go?

Thanks!

Adam Urbanczyk

unread,
Oct 26, 2021, 1:52:18 AM10/26/21
to CadQuery
inner, outer are wires that define the base face. You could try with a spine that starts at the vertex of interest (NB: spine orientation wrt your base face has effect on the shape).

Lorenz

unread,
Oct 26, 2021, 7:45:32 PM10/26/21
to CadQuery

>Looking at the documentation there is mention of outer and inner wires, 

This is the first sweep method definition you will find if you visit the class summary page and do say Ctrl+F in the browser.

Since the API reference is a single page, perhaps you didn't realize this was not the Workplane sweep method?  If I'm right this is what I meant by usability in issue 834 where it might be nice to have a separate page for Workplane. 

Reply all
Reply to author
Forward
0 new messages