Intersection in 3d world

Discussion created by simsoftgis on Nov 16, 2011
Latest reply on Dec 1, 2011 by whe-esristaff
How 2 3-D geometries intersect in globe control programmatically. I am constructing a polygon and extrude it so that it has a volume. Then i use IRelationalOperator3D Disjoint3D method and negate it in order to understand whether two geometries intersect. It works fine when two geometries intersect with the outer boundary, however , when i try to put a cube inside a bigger cube (no common point, bigger cube just encapsulate the smaller one) and ask whether they intersect it returns false.

I want to get yes answer when a geometry is inside another geomtry. Is there a way to do this. I try lots of methods. Can anyone help me?

Geoprocessor GP = new Geoprocessor();
            ESRI.ArcGIS.Analyst3DTools.Intersect3D analys = new ESRI.ArcGIS.Analyst3DTools.Intersect3D();
            analys.in_feature_class_1 ="";
            analys.in_feature_class_2 = "";
            analys.out_feature_class ="" ;

            GP.Execute(analys, null);

Lastly, i try to use Analyst3DTools.Intersect3D method but i cannot create .shp files for in_feature_class_1.
How can i construct a multipatch feature into a .shp file.

Or is there another way for intersection of 3d geometries?

(To be clear, in my case if a geometry is inside another one it intersects)

Thanks in advance.