Fillets on internal corners

graham_lock
graham_lock Member Posts: 277 PRO

Hi,

I have bodies which look like this:

Screenshot 2024-11-20 101528.png

I'm trying to workout how to find the internal corner edges so I can apply fillets?

I'm using qSmallest(qOwnedByBody(body, EntityType.EDGE)) (is there a better way?) which returns all 8 corner edges but how should I filter the inner ones?

Any help appreciated.

Thank you.

Best Answers

Answers

  • S1mon
    S1mon Member Posts: 4,645 PRO
    Answer ✓

    You could look at the code for selection fillet, or just use the custom feature.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • lana
    lana Onshape Employees Posts: 782 image
    Answer ✓

    You can use evEdgeConvexity for the edges, You are interested in concave edges.

  • graham_lock
    graham_lock Member Posts: 277 PRO

    Thank you for your reply.

    I now have the following:

    for (var edge in evaluateQuery(context, qSmallest(qOwnedByBody(outerSplitBody, EntityType.EDGE))))
    {
    if (evEdgeConvexity(context, {
    "edge" : edge}) == EdgeConvexityType.CONCAVE)
    {
    debug(context, edge);
    println("Found internal edge");
    }
    }

    This does indeed find the internal edges - is this your intended approach?

  • graham_lock
    graham_lock Member Posts: 277 PRO

    Thanks @S1mon i’ll take a look at that.

  • lana
    lana Onshape Employees Posts: 782 image
    Answer ✓

    @graham_lock

    Yes - that looks correct.