API to get inner and outer loop of Sphere

API to get inner and outer loop of Sphere

Anonymous
Not applicable
561 Views
3 Replies
Message 1 of 4

API to get inner and outer loop of Sphere

Anonymous
Not applicable

Hello,

 

I have a sphere body whose material is partly removed by a boolen subtraction with another sphere. When I query the EdgeLoop of sphere for Outer edge loop using function InvEdgeLoopPtr::GetIsOuterEdgeLoop(), I always get a value of VARIANT_TRUE. Can you please let me know the right way to check for the inner and outer loop of a sphere? Please use the attached file for reference.

 

Thanks and Best Regards,

Vaibhav

0 Likes
562 Views
3 Replies
Replies (3)
Message 2 of 4

nagwani
Alumni
Alumni

Hi Vaibhav,

 

You are using the correct API to check if the loop is an outer one. The part you attached has only one outer edgeloop and GetIsOuterEdgeLoop() would always return VARIANT_TRUE for that edgeloop. For example the rectangular block with two holes on top face will return 1 outer and 2 inner edgeloops for top face.

 

 

-Ishwar N

0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for clarification Ishwar!!

 

The part that I have attached gives me two faces. Both faces are spheres. For one sphere ( the major sphere), I expected the EdgeLoop object to give me GetIsOuterEdgeLoop() value as VARIANT_TRUE and for the other sphere ( the sphere used for boolean subtraction) it was expected to be VARIANT_FALSE.

Am I correct in this assumption?

 

Thanks in advance,

Vaibhav

 

 

0 Likes
Message 4 of 4

nagwani
Alumni
Alumni

Hi Vaibhav,

 

The EdgeLoop outer/inner is considered with respect to face, though there are two spherical faces, for each face that edgeloop is outer. In image shown below, the edge in blue color is outer edgeloop for that face and API would also return same.

 

Hope this helps!.

-Ishwar N

 

 

loops.jpg

 

0 Likes