Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
opExtrude UP_TO_FACE Issue
aaron_skidmore
Member Posts: 34 ✭✭
Hi there, when I opExtrude as per below if the regionToExtrude is within the boundaries of the bottomface, it works ok, but if the regionToExtrude is outside the boundaries of the bottomface it doesnt work, is this expected behavior?
opExtrude(context, id + "extrude1",
{ "entities" : regionToExtrude,
"direction" : zDirection *-1,
"endBound" : BoundingType.UP_TO_FACE,
"endBoundEntity" : qNthElement(bottomface, 0),
"operationType" : NewBodyOperationType.NEW,
{ "entities" : regionToExtrude,
"direction" : zDirection *-1,
"endBound" : BoundingType.UP_TO_FACE,
"endBoundEntity" : qNthElement(bottomface, 0),
"operationType" : NewBodyOperationType.NEW,
"defaultScope" : true
});
Tagged:
0
Comments
UP_TO_FACE is a deprecated option. Please use UP_TO_SURFACE instead, which will expand the given face to its infinite boundary, if possible. See: https://cad.onshape.com/FsDoc/library.html#BoundingType
Internally, when selecting the "Up to face" option in the extrude feature, you are actually selecting UP_TO_SURFACE enum. See the implementation here:
https://cad.onshape.com/documents/12312312345abcabcabcdeff/w/a855e4161c814f2e9ab3698a/e/0ef5bec0909d4235a5ca1ebb
I am now struggling to find a way to get a solid bodies that intersection another solid body, via evCollision ? Or qIntersection ?
qIntersection is not a geometric concept. It is just a simple set intersection. For example if I had two queries that represented:
[face1, face3, face5] and [face1, face2, face3]
The intersection of those two queries is [face1, face3]
Similar to qUnion and qSubtraction, it is just a way to combine, find the overlap, or remove queries from each other. See: https://cad.onshape.com/FsDoc/library.html#qIntersection-array
evCollision ( https://cad.onshape.com/FsDoc/library.html#evCollision-Context-map ) will happily collide with multiple bodies at once.