Beispiel #1
0
 internal DxfMeshFace Clone(
     Dictionary <DxfVertex3D, int> fromVertexToIndex,
     DxfPolyfaceMesh dxfPolyfaceMesh,
     CloneContext cloneContext)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Beispiel #2
0
        internal DxfMeshFace Clone(
            CloneContext cloneContext,
            DxfPolyfaceMesh fromMesh,
            Dictionary <DxfVertex3D, int> fromVertexToIndex)
        {
            DxfMeshFace dxfMeshFace = new DxfMeshFace();

            dxfMeshFace.CopyFrom(this, cloneContext, fromMesh, fromVertexToIndex);
            return(dxfMeshFace);
        }
Beispiel #3
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfPolyfaceMesh dxfPolyfaceMesh = (DxfPolyfaceMesh)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfPolyfaceMesh == null)
            {
                dxfPolyfaceMesh = new DxfPolyfaceMesh();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfPolyfaceMesh);
                dxfPolyfaceMesh.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfPolyfaceMesh);
        }
Beispiel #4
0
 private void CopyFrom(
     DxfMeshFace from,
     CloneContext cloneContext,
     DxfPolyfaceMesh mesh,
     Dictionary <DxfVertex3D, int> fromVertexToIndex)
 {
     this.CopyFrom((DxfHandledObject)from, cloneContext);
     foreach (DxfMeshFace.Corner corner in from.list_0)
     {
         int index = fromVertexToIndex[corner.Vertex];
         this.list_0.Add(new DxfMeshFace.Corner(mesh.Vertices[index], corner.EdgeVisible));
     }
 }
Beispiel #5
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfPolyfaceMesh dxfPolyfaceMesh = (DxfPolyfaceMesh)from;
            Dictionary <DxfVertex3D, int> fromVertexToIndex = new Dictionary <DxfVertex3D, int>();
            int num = 0;

            foreach (DxfVertex3D key in (DxfHandledObjectCollection <DxfVertex3D>)dxfPolyfaceMesh.dxfVertex3DCollection_0)
            {
                this.dxfVertex3DCollection_0.Add((DxfVertex3D)key.Clone(cloneContext));
                fromVertexToIndex.Add(key, num);
                ++num;
            }
            foreach (DxfMeshFace dxfMeshFace in dxfPolyfaceMesh.list_0)
            {
                this.list_0.Add(dxfMeshFace.Clone(cloneContext, this, fromVertexToIndex));
            }
        }
Beispiel #6
0
 public virtual void Visit(DxfPolyfaceMesh mesh)
 {
 }
Beispiel #7
0
 public virtual void Visit(DxfPolyfaceMesh mesh)
 {
     this.VisitEntity((DxfEntity)mesh);
 }