Checking if objects are contained within

I have two figures: a cylinder and a cube with a hole. How to check if both objects have any common part using Sketchup API?

What exactly did you mean? Can you explain?

I have to check that two groups have collision (common part) with each other I think in my case, using bounds, I won’t receive this information.
And I think, bounds does not work in Ruby Api properly. I have to try, sameting diferent … But I do not know what…:frowning:

Please don’t double post. I moved this to Ruby API.

If there were both manifold solids, you could maybe use Sketchup::Group#intersect.

Or, if they are not manifold:

  1. check if the bounds intersect
  2. check if their entities intersect