Esempio n. 1
0
        protected WksSegmentProxyBase([NotNull] IWKSPointCollection wksPointCollection,
                                      int partIndex, int index)
            : base(partIndex, index)
        {
            Assert.ArgumentNotNull(wksPointCollection, nameof(wksPointCollection));

            _wksPointCollection = wksPointCollection;
        }
Esempio n. 2
0
 public TriPlaneProxy(int partIndex, IWKSPointCollection points, int index0,
                      int index1, int index2)
     : base(partIndex, points)
 {
     _index0 = index0;
     _index1 = index1;
     _index2 = index2;
 }
Esempio n. 3
0
        public WksSegmentProxy([NotNull] IWKSPointCollection wksPointCollection,
                               int partIndex, int index)
            : base(wksPointCollection, partIndex, index)
        {
            Assert.ArgumentCondition(index >= 0,
                                     "Invalid segment index: {0}", index);
            int pointCount = wksPointCollection.Points.Count;

            Assert.ArgumentCondition(index < pointCount - 1,
                                     "Invalid segment index for point count {0}: {1}",
                                     pointCount, index);
        }
        public WksFromToSegmentProxy([NotNull] IWKSPointCollection wksPointCollection,
                                     int partIndex, int segmentIndex, int fromIndex,
                                     int toIndex)
            : base(wksPointCollection, partIndex, segmentIndex)
        {
            Assert.ArgumentCondition(fromIndex >= 0, "Invalid segment index: {0}", fromIndex);
            Assert.ArgumentCondition(toIndex >= 0, "Invalid segment index: {0}", toIndex);

            int pointCount = wksPointCollection.Points.Count;

            Assert.ArgumentCondition(fromIndex < pointCount,
                                     "Invalid fromIndex for point count {0}: {1}",
                                     pointCount, fromIndex);
            Assert.ArgumentCondition(toIndex < pointCount,
                                     "Invalid toIndex for point count {0}: {1}",
                                     pointCount, toIndex);
            _fromIndex = fromIndex;
            _toIndex   = toIndex;
        }
Esempio n. 5
0
 public RingPlaneProxy(int partIndex, IWKSPointCollection points)
     : base(partIndex, points)
 {
 }
Esempio n. 6
0
 protected PlaneProxy(int partIndex,
                      [NotNull] IWKSPointCollection points)
 {
     PartIndex = partIndex;
     Points    = points;
 }