示例#1
0
        protected override void Init()
        {
            this.heap   = new MinHeapTwo <TriMesh.Vertex>(this.Mesh.Vertices.Count);
            this.handle = new HeapNode <TriMesh.Vertex> [this.Mesh.Vertices.Count];

            foreach (TriMesh.Vertex v in this.Mesh.Vertices)
            {
                double curvature = this.GetValue(v);
                this.handle[v.Index] = heap.Add(Math.Abs(curvature), v);
            }
        }
示例#2
0
        protected override void Init()
        {
            this.heap   = new MinHeapTwo <TriMesh.Edge>(this.Mesh.Edges.Count);
            this.handle = new HeapNode <TriMesh.Edge> [this.Mesh.Edges.Count];
            this.traits = new TriMeshTraits(this.Mesh);
            this.traits.Init();

            foreach (var item in this.Mesh.Edges)
            {
                double value = this.GetValue(item);
                this.handle[item.Index] = this.heap.Add(value, item);
            }
        }
示例#3
0
        protected override void Init()
        {
            this.heap   = new MinHeapTwo <TriMesh.Face>(this.Mesh.Faces.Count);
            this.handle = new HeapNode <TriMesh.Face> [this.Mesh.Faces.Count];
            this.traits = new TriMeshTraits(this.Mesh);
            this.traits.Init();

            foreach (TriMesh.Face face in this.Mesh.Faces)
            {
                double value = this.GetValue(face);
                this.handle[face.Index] = heap.Add(value, face);
            }
        }