Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

is a point inside a body ?

lionel.courgnaud
Enthusiast

is a point inside a body ?

lionel.courgnaud
Enthusiast
Enthusiast

Hello,

 

I'm trying to solve this case. I'm having a body and 2 sketches lines (OA, OB)

I'd like to know if the AOB angle is in the body or not.

I tried to draw a construction line (AB)  and determine if his middle is inside the body, but I'm stuck.

 

Is there a function for that ? Or a better way to do it ?

 

Thanks for your help 🙂

 

Illustration_sans_titre.jpg

 

0 Likes
Reply
Accepted solutions (1)
264 Views
2 Replies
Replies (2)

BrianEkins
Mentor
Mentor
Accepted solution

You can use the BRepBody.pointContainment method to determine if a point is inside, on, or outside a body.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
1 Like

lionel.courgnaud
Enthusiast
Enthusiast

thanks a lot 🙂 it's so easy when you know the good API function 🙂

 

0 Likes