Exemplo n.º 1
0
        public LRTriangleMesh Build()
        {
            int[] vertexMapping;
            lrTriangleMesh = new LRTriangleMesh();

            //Run ring expander
            RingExpander();

            //Resolve vertices
            LRVertexResolver lrVertexResolver = new LRVertexResolver(ctTriangleMesh, lrTriangleMesh, vMarked, tMarked);
            lrTriangleMesh = lrVertexResolver.ResolveVertices(out vertexMapping);

            //Resolve triangles
            LRTriangleResolver lrTriangleResolver = new LRTriangleResolver(ctTriangleMesh, lrTriangleMesh, vMarked, tMarked);
            lrTriangleMesh = lrTriangleResolver.ResolveTriangles(vertexMapping);

            return lrTriangleMesh;
        }
Exemplo n.º 2
0
        public LRTriangleMesh Build()
        {
            int[] vertexMapping;
            lrTriangleMesh = new LRTriangleMesh();

            //Run ring expander
            RingExpander();

            //Resolve vertices
            LRVertexResolver lrVertexResolver = new LRVertexResolver(ctTriangleMesh, lrTriangleMesh, vMarked, tMarked);
            lrTriangleMesh = lrVertexResolver.ResolveVertices(out vertexMapping);

            //Resolve triangles
            LRTriangleResolver lrTriangleResolver = new LRTriangleResolver(ctTriangleMesh, lrTriangleMesh, vMarked, tMarked);
            lrTriangleMesh = lrTriangleResolver.ResolveTriangles(vertexMapping);

            return lrTriangleMesh;
        }