MultiPatch Triangles

4301
5
02-06-2013 04:43 PM
JohnMcGlynn
Occasional Contributor
I have an ArcScene document which was created using an FME translation of an AutoCad 3D drawing. The arrangement of the geometries is awful - there are triangles which touch and are in the same plane but have been placed in different geometries.

I am using Ctype(pFeature.ShapeCopy, IGeometryCollection) to break up the multipatch.

I would like to be able to break the multipatch into it's individual triangles and reassemble them in some kind of logical order. If I break it into it's geometries then most of them contain more than one triangle.

Can anyone tell me how I can break the geometries into their individual triangles?

Thanks,

NavJohn
0 Kudos
5 Replies
RichWawrzonek
Occasional Contributor
0 Kudos
JohnMcGlynn
Occasional Contributor
No, it doesn't unfortunately.
0 Kudos
SirishByreddy
New Contributor III

Hi John,

Did you find any solution. I am also looking for this. I have posted similar kind of question here...and unfortunately no replies from ESRI.

here is my question..

https://community.esri.com/message/420864#420864

Thanks,

Sirish

0 Kudos
JohnMcGlynn
Occasional Contributor

Hi SIrish,

Sorry for the delay on this.

The point collection of the multipatch can be found by creating a new IPointCollection4 and then looping through the geometries and typing each geometry to the pointcollection.

for (int i = 0; i < multiPatchGeometryCollection.GeometryCount; i++)

{

   //here i want to know each geomteries Triangles count and it vertices

     pPtColl = new Ring;

     pGeom = multiPatchGeometryCollection.Geometry(i);

     pPtColl = (IPointCollection4)pGeom;

     // Cycle through the points pPtColl

}

0 Kudos
SirishByreddy
New Contributor III

Hi John,

Sorry for the late reply to this.

Thank you very much. It works.

Thanks

Sirish

0 Kudos