-
Notifications
You must be signed in to change notification settings - Fork 300
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
Workplane() resets currently selected objects #149
Comments
We agree that the expected behaviour would be equal to this : import cadquery as cq
result = cq.Workplane("XY").rect(10.0,10.0).extrude(10).faces("<Y")\
.workplane().end(1).vertices('<XZ').circle(1).extrude(10) I have been bothered several time by this and while the If this is still expected to be solved I will try to bring a PR EDIT : Looking at the source code for # make the new workplane
plane = Plane(offsetCenter, xDir, normal)
s = self.__class__(plane)
s.parent = self
s.objects = self.objects # we would just add this ?
s.ctx = self.ctx Of course I need to make sure it doesn't make the tests fail but it seems it would be what's expected ? |
I think, that's it indeed. |
Or maybe: s.objects = self.objects[:] |
I have tried my solution, it breaks some tests, I have quickly looked, some tests could be rewritten, some need a bit more investigation why they break. |
Feel free to open a WIP PR and we can take a look together. |
The following code does not work
I think it should -- it is quite clear what the intent if the user is here. This is also related to #24
The text was updated successfully, but these errors were encountered: