private void method_2(Class374 modelBuilder, DxfPolyfaceMesh mesh, Class285 entityBuilder) { Class286 class286 = entityBuilder as Class286; if (class286 == null) { return; } DxfMeshFace entity = (DxfMeshFace)class286.Entity; if (class286.Vertex0Index != (short)0) { int index = Math.Abs((int)class286.Vertex0Index) - 1; if (index >= mesh.Vertices.Count) { this.method_3(modelBuilder, mesh, (int)class286.Vertex0Index); return; } entity.Corners.Add(new DxfMeshFace.Corner(mesh.Vertices[index], class286.Vertex0Index > (short)0)); } if (class286.Vertex1Index != (short)0) { int index = Math.Abs((int)class286.Vertex1Index) - 1; if (index >= mesh.Vertices.Count) { this.method_3(modelBuilder, mesh, (int)class286.Vertex1Index); return; } entity.Corners.Add(new DxfMeshFace.Corner(mesh.Vertices[index], class286.Vertex1Index > (short)0)); } if (class286.Vertex2Index != (short)0) { int index = Math.Abs((int)class286.Vertex2Index) - 1; if (index >= mesh.Vertices.Count) { this.method_3(modelBuilder, mesh, (int)class286.Vertex2Index); return; } entity.Corners.Add(new DxfMeshFace.Corner(mesh.Vertices[index], class286.Vertex2Index > (short)0)); } if (class286.Vertex3Index != (short)0) { int index = Math.Abs((int)class286.Vertex3Index) - 1; if (index >= mesh.Vertices.Count) { this.method_3(modelBuilder, mesh, (int)class286.Vertex3Index); return; } entity.Corners.Add(new DxfMeshFace.Corner(mesh.Vertices[index], class286.Vertex3Index > (short)0)); } mesh.Faces.Add(entity); }
public void Visit(DxfMeshFace meshFace) { this.method_0((DxfEntity)meshFace); }
public void Visit(DxfMeshFace meshFace) { this.bool_0 = true; }
public Class286(DxfMeshFace face) : base((DxfEntity)face) { }