public void CanCreateIndexGeometry() { // TODO: Test umwandeln in CanGetMultiPatchProxy _largeData.SpatialReference = SpatialReferenceUtils.CreateSpatialReference ( (int)esriSRProjCS2Type.esriSRProjCS_CH1903Plus_LV95); var geom = new IndexedPolycurve((IPointCollection4)_largeData); foreach (SegmentProxy segment in geom.GetSegments()) { Assert.IsTrue(segment.IsLinear); } }
public void CanCreateIndexGeometryWithTriangles() { // TODO: Test umwandeln in CanGetMultiPatchProxyWithTriangles var construction = new MultiPatchConstruction(); construction.StartRing(5, 4, 0).Add(-5, 4, 0).Add(-5, -4, 0).Add(5, -4, 0) .StartFan(5, 4, 1).Add(-5, 4, 1).Add(-5, -4, 1).Add(5, -4, 1) .StartTris(5, 4, 2).Add(-5, 4, 2).Add(-5, -4, 2) .StartStrip(5, 4, 3).Add(-5, 4, 3).Add(-5, -4, 3).Add(5, -4, 3); IMultiPatch mp = construction.MultiPatch; ((IGeometry)mp).SpatialReference = SpatialReferenceUtils.CreateSpatialReference( (int)esriSRProjCS2Type.esriSRProjCS_CH1903Plus_LV95); var geom = new IndexedPolycurve((IPointCollection4)mp); foreach (SegmentProxy segment in geom.GetSegments()) { Assert.IsTrue(segment.IsLinear); } }