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.
Edge length of evaluated face?
MichaelPascoe
Member Posts: 2,790 PRO
I'm trying to measure the boundary edge of an evaluated face. When using evFaceTangentPlane, if the face is not square, the evaluation will project where the face should be. I can place a plane on the invisible edge shown below with evFaceTangentPlane. However, I'm not sure how to get the length of the invisible edge.
If I use opCreateCurvesOnFace, I can see the invisible boundary curve in red, but I can't measure it.
Is there a way to measure the invisible boundary edges calculated by evFaceTangentPlane or something similar?

If I use opCreateCurvesOnFace, I can see the invisible boundary curve in red, but I can't measure it.
Is there a way to measure the invisible boundary edges calculated by evFaceTangentPlane or something similar?

RENDERCAD
rendercad.ai - Photorealistic product rendering.
▚▞▚▞▚▞▚▞▚
________________________________________________________________________
Tagged:
0
Comments
FRC Design Mentor - Team 1306 BadgerBots
RENDERCAD
rendercad.ai - Photorealistic product rendering.
▚▞▚▞▚▞▚▞▚
________________________________________________________________________
RENDERCAD
rendercad.ai - Photorealistic product rendering.
▚▞▚▞▚▞▚▞▚
________________________________________________________________________
For anyone else who may need the unseen boundary edges of an evaluated face, here is what I used:
var xSplineResolution = 10; var ySplineResolution = 10; var xSamples = []; var ySamples = []; var xLength; var yLength; for (var i = 0; i < 2; i += 1) { var resolution = i == 0 ? xSplineResolution : ySplineResolution; for (var k = 0; k < resolution+1; k += 1) { var parameter = i == 0 ? vector(1 / resolution * k, 0) : vector(0, 1 / resolution * k); debug(context, parameter, DebugColor.RED); const plane0 = evFaceTangentPlane(context, { "face" : surface, "parameter" : parameter }); if (i == 0) { xSamples = append(xSamples, plane0.origin); debug(context, plane0.origin, DebugColor.RED); } if (i == 1) { ySamples = append(ySamples, plane0.origin); debug(context, plane0.origin, DebugColor.GREEN); } } } opFitSpline(context, id + "fitSplineX", { "points" : xSamples }); opFitSpline(context, id + "fitSplineY", { "points" : ySamples }); xLength = evLength(context, { "entities" : qCreatedBy(id + "fitSplineX", EntityType.EDGE) }); yLength = evLength(context, { "entities" : qCreatedBy(id + "fitSplineY", EntityType.EDGE) }); debug(context, xLength, DebugColor.RED);RENDERCAD
rendercad.ai - Photorealistic product rendering.
▚▞▚▞▚▞▚▞▚
________________________________________________________________________