Beispiel #1
0
 public DxfPolygonSplineMesh(
     SplineType splineType,
     ushort mControlPointCount,
     ushort nControlPointCount)
 {
     this.splineType_0 = splineType;
     this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>((int)mControlPointCount * (int)nControlPointCount);
 }
Beispiel #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfIdBuffer dxfIdBuffer = (DxfIdBuffer)from;

            this.byte_0 = dxfIdBuffer.byte_0;
            this.dxfHandledObjectCollection_1.Clear();
            if (cloneContext.SourceModel == cloneContext.TargetModel)
            {
                this.dxfHandledObjectCollection_1 = dxfIdBuffer.dxfHandledObjectCollection_1;
            }
            else
            {
                foreach (DxfHandledObject dxfHandledObject in dxfIdBuffer.dxfHandledObjectCollection_1)
                {
                    this.dxfHandledObjectCollection_1.Add((DxfHandledObject)cloneContext.Clone((IGraphCloneable)dxfHandledObject));
                }
            }
        }
Beispiel #3
0
        internal void method_11(IList <DxfEntity> entities)
        {
            if (this.dictionary_0.Count != this.list_0.Count)
            {
                this.dictionary_0.Clear();
                foreach (DxfEntitySortWrapper entitySortWrapper in this.list_0)
                {
                    this.dictionary_0[entitySortWrapper.Entity.Reference] = entitySortWrapper;
                }
            }
            if (this.dxfHandledObjectCollection_1 != null && this.dxfHandledObjectCollection_1.Count == entities.Count)
            {
                return;
            }
            List <DxfEntitySortWrapper> entitySortWrapperList = new List <DxfEntitySortWrapper>();

            foreach (DxfEntity entity in (IEnumerable <DxfEntity>)entities)
            {
                DxfEntitySortWrapper entitySortWrapper;
                if (!this.dictionary_0.TryGetValue(entity.Reference, out entitySortWrapper))
                {
                    entitySortWrapper = new DxfEntitySortWrapper(entity, entity.Handle);
                }
                entitySortWrapperList.Add(entitySortWrapper);
            }
            entitySortWrapperList.Sort();
            if (this.dxfHandledObjectCollection_1 == null)
            {
                this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfEntity>(entitySortWrapperList.Count);
            }
            else
            {
                this.dxfHandledObjectCollection_1.Clear();
            }
            foreach (DxfEntitySortWrapper entitySortWrapper in entitySortWrapperList)
            {
                this.dxfHandledObjectCollection_1.Add(entitySortWrapper.Entity);
            }
        }
Beispiel #4
0
 public DxfPolygonMesh(ushort mVertexCount, ushort nVertexCount)
 {
     this.ushort_0 = mVertexCount;
     this.ushort_1 = nVertexCount;
     this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>((int)mVertexCount * (int)nVertexCount);
 }
Beispiel #5
0
 public DxfPolygonMesh()
 {
     this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>();
 }
Beispiel #6
0
 private void method_12(object sender, EventArgs e)
 {
     this.dxfHandledObjectCollection_1 = (DxfHandledObjectCollection <DxfEntity>)null;
 }
Beispiel #7
0
 public DxfPolygonSplineMesh(SplineType splineType)
 {
     this.splineType_0 = splineType;
     this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>();
 }