//---------------------------------------------------------------------------------- public static MultiPatch MaakTrianglesMP() { MultiPatch pMultiPatch = new MultiPatch(); IGeometryCollection pGCol = (IGeometryCollection)pMultiPatch; IPointCollection pTriangles = new Triangles(); IGeometry2 pGeom = (IGeometry2)pTriangles; int nfcs = ImportInArcscene.binReader.ReadInt32(); for (int i = 1; i <= nfcs * 3; i++) { double ptx = ImportInArcscene.binReader.ReadSingle(); double pty = ImportInArcscene.binReader.ReadSingle(); double ptz = ImportInArcscene.binReader.ReadSingle(); pTriangles.AddPoint(PuntTransformatie(ptx, pty, ptz), ref _missing, ref _missing); } pGCol.AddGeometry(pGeom, ref _missing, ref _missing); return(pMultiPatch); }