public DxfPolygonSplineMesh( SplineType splineType, ushort mControlPointCount, ushort nControlPointCount) { this.splineType_0 = splineType; this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>((int)mControlPointCount * (int)nControlPointCount); }
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)); } } }
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); } }
public DxfPolygonMesh(ushort mVertexCount, ushort nVertexCount) { this.ushort_0 = mVertexCount; this.ushort_1 = nVertexCount; this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>((int)mVertexCount * (int)nVertexCount); }
public DxfPolygonMesh() { this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>(); }
private void method_12(object sender, EventArgs e) { this.dxfHandledObjectCollection_1 = (DxfHandledObjectCollection <DxfEntity>)null; }
public DxfPolygonSplineMesh(SplineType splineType) { this.splineType_0 = splineType; this.dxfHandledObjectCollection_1 = new DxfHandledObjectCollection <DxfVertex3D>(); }