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.
Create a variance on a face with opExtrude?
daniel_cravens
Member Posts: 29 ✭
What is the best way to create a variance on face? My thought is simply to reduce the part with opExtrude by the variance amount (i.e. 1 mm) + opBoolean (subtract) to cut the 1 mm variance from the part. However, my problem is that I cannot figure out how to determine the correct direction for the opExtrude from the face once I calculate the normal. I can calculate the normal from the face (see below), but that doesn't tell me whether the cut should be in the normal direction or the anti-normal direction in order to reduce the part. What am I misunderstanding?
========
========
export function evFaceNormal(context, qface is Query) returns Vector
{
var plane = evPlane(context, {
"face" : qface
});
return plane.normal;
}
0
Comments