Example #1
0
 private int method_2(DxfPolygonMesh polygonMesh, Class285 entityBuilder, ref int vertexIndex)
 {
     if (entityBuilder != null)
     {
         Class301 class301 = (Class301)entityBuilder;
         polygonMesh.Vertices.Add((DxfVertex3D)class301.Entity);
         ++vertexIndex;
     }
     return(vertexIndex);
 }
Example #2
0
 public void Visit(DxfPolygonMesh mesh)
 {
     this.method_0((DxfEntity)mesh);
     this.method_2((int)mesh.MVertexCount * (int)mesh.NVertexCount);
 }
Example #3
0
 public void Visit(DxfPolygonMesh mesh)
 {
     this.bool_0 = true;
 }
 /// <summary>
 /// Visits the specified entity.
 /// See the <see cref="IEntityVisitor"/> for more details.
 /// </summary>
 public override void Visit(DxfPolygonMesh mesh)
 {
     HandleEntity(mesh);  // don't care for vertices, as they ought to have the same layer
 }
Example #5
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);
                    }
                }
            }
        }