Ejemplo n.º 1
0
 public Class293(DxfPolygonMeshBase mesh)
     : base((DxfEntity)mesh)
 {
 }
Ejemplo n.º 2
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfPolygonMeshBase   entity     = (DxfPolygonMeshBase)this.Entity;
            DxfPolygonSplineMesh splineMesh = entity as DxfPolygonSplineMesh;

            if (splineMesh != null)
            {
                splineMesh.MControlPointCount    = this.ushort_0;
                splineMesh.NControlPointCount    = this.ushort_1;
                splineMesh.SmoothSurfaceMDensity = this.ushort_2;
                splineMesh.SmoothSurfaceNDensity = this.ushort_3;
                int controlPointIndex       = 0;
                int approximationPointIndex = 0;
                if (this.ulong_6 != 0UL)
                {
                    for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_6); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder))
                    {
                        this.method_3(splineMesh, entityBuilder, ref controlPointIndex, ref approximationPointIndex);
                        if ((long)entityBuilder.HandledObject.Handle == (long)this.ulong_7)
                        {
                            break;
                        }
                    }
                }
                else
                {
                    if (this.list_1 == null)
                    {
                        return;
                    }
                    for (int index = 0; index < this.list_1.Count; ++index)
                    {
                        ulong handle = this.list_1[index];
                        this.method_3(splineMesh, modelBuilder.method_6(handle), ref controlPointIndex, ref approximationPointIndex);
                    }
                }
            }
            else
            {
                DxfPolygonMesh polygonMesh = (DxfPolygonMesh)entity;
                polygonMesh.MVertexCount = this.ushort_0;
                polygonMesh.NVertexCount = this.ushort_1;
                int vertexIndex = 0;
                if (this.ulong_6 != 0UL)
                {
                    for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_6); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder))
                    {
                        this.method_2(polygonMesh, entityBuilder, ref vertexIndex);
                        if ((long)entityBuilder.HandledObject.Handle == (long)this.ulong_7)
                        {
                            break;
                        }
                    }
                }
                else
                {
                    if (this.list_1 == null)
                    {
                        return;
                    }
                    for (int index = 0; index < this.list_1.Count; ++index)
                    {
                        ulong    handle        = this.list_1[index];
                        Class285 entityBuilder = modelBuilder.method_6(handle);
                        this.method_2(polygonMesh, entityBuilder, ref vertexIndex);
                    }
                }
            }
        }