-
Notifications
You must be signed in to change notification settings - Fork 291
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
forConstruction option in offset2d #618
Comments
+1, good idea. |
I would think a typical use case would be: w = (
cq.Workplane
.rect(10, 10, centered=False, forConstruction=True)
.offset2D(-1, forConstruction=True)
.vertices()
.hole(1)
) So currently Lines 3675 to 3693 in 184a985
To enable it to work off construction geometry, I think when |
@marcus7070 Are you blocked on this? You probably won't find a 1-to-1 comparison with offset2d in the codebase, but you could take a look at how |
@marcus7070 I'm not sure what the possible issue is. Does something go wrong, if you just set the |
Not blocked, thanks. Out of the two methods (taking edges from Then I noticed that Lines 2079 to 2117 in d1ebfba
|
I had some misconceptions about pending wires and construction geometry. I was thinking that it should be possible to chain construction geometry calls together, like Lines 85 to 87 in d1ebfba
But I've come around now, there is no other way to do the simple I'll get the PR done today or tomorrow. |
I often want to use
Workplane.offset2D
to create construction geometry. For example:Which actually works just fine:
Until you go to use
w.ctx.pendingWires
, for example:And now you realise
offset2D
leaves the shape inpendingWires
.Is it worth adding a
forConstruction
option, similar torect
and other methods?The text was updated successfully, but these errors were encountered: