-
Notifications
You must be signed in to change notification settings - Fork 290
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
Finding coplanar and concentric surfaces #1576
Comments
Personally I use faces = cq_object.faces(cq.selectors.BoxSelector(corner0, corner1, boundingbox=True)) to select objects having the same, or contained in, bounding boxes. |
Thank you, this is helpful! Do you have any idea how I could do the same for cylinders? |
Maybe comparing areas and centers with center = face.val().Center().toTuple()
area = face.val().Area() |
Thank you again, this works. But how can I select the remaining surfaces? "not" doesn't work. Basically I want to show all surfaces but color the selected ones. |
You could get a list of all surfaces with |
I imported a 3D part from a step file. Addionally I have parameters for the following surfaces:
I would like to find all faces in my part that are either coplanar to my plane or concentric and equal in radius to my cylinder surface.
My idea was to iterate over all faces and compare their parameters with the plane/cylinder I have.
Is there a better way to do this and if no, how do I iterate over the faces of my part?
The text was updated successfully, but these errors were encountered: