I have a program which needs implementing GetIntersectionEdges method.

I used GetIntersectionEdges method to check whether two temporary bodies intersect with each other.

However, I realized that when two bodies are touching but not really intersecting, there will also be intersecting edges between the two bodies.

And the returned array will also be non-empty for two bodies touching but not intersecting.

I'm only interested in the situation where two temp bodies are really intersecting.

I was wondering how I can tell from the returned array of intersecting edges whether two temporary bodies are just touching or actually intersecting.

Can anybody help me with this question. Would really appreciate your help.

You could run IBody2::Operations2 on the two bodies using the combine option. If no body is returned, then they were only touching. Even if a body is returned, you could examine the physical properties of that body using IBody2::GetMassProperties. If the volume is very close to 0, then you could regard the two original bodies as only touching.

Keith

SolidWorks API Training