public void CanGetInnerPartIndexesOuterRingRing() { var construction = new MultiPatchConstruction(); construction.StartOuterRing(5, 4, 0).Add(-5, 4, 0).Add(-5, -4, 0).Add(5, -4, 0) .StartRing(4, 3, 0).Add(-4, 3, 0).Add(-4, -3, 0).Add(4, -3, 0); IMultiPatch multiPatch = construction.MultiPatch; ((IGeometry)multiPatch).SpatialReference = SpatialReferenceUtils.CreateSpatialReference( (int)esriSRProjCS2Type.esriSRProjCS_CH1903Plus_LV95); IIndexedMultiPatch indexedMultiPatch = QaGeometryUtils.CreateIndexedMultiPatch(multiPatch); List <int> innerPartIndexes = MultiPatchUtils.GetInnerRingPartIndexes(indexedMultiPatch, 0); Assert.AreEqual(0, innerPartIndexes.Count); }
public void CanGetMultiPatchRings() { List <List <WKSPointVA> > rings = MultiPatchUtils.GetRings(_largeData); Assert.IsNotNull(rings); }