Ejemplo n.º 1
0
 public LRVertexResolver(CTTriangleMesh ctTriangleMesh, LRTriangleMesh lrTriangleMesh, bool[] vMarked, bool[] tMarked)
 {
     this.ctTriangleMesh = ctTriangleMesh;
     this.lrTriangleMesh = lrTriangleMesh;
     this.vMarked        = vMarked;
     this.tMarked        = tMarked;
 }
Ejemplo n.º 2
0
        public LRTriangleResolver(CTTriangleMesh ctTriangleMesh, LRTriangleMesh lrTriangleMesh, bool[] vMarked, bool[] tMarked)
        {
            this.ctTriangleMesh = ctTriangleMesh;
            this.lrTriangleMesh = lrTriangleMesh;
            this.vMarked        = vMarked;
            this.tMarked        = tMarked;

            lrTriangleMesh.LR = new int[2 * lrTriangleMesh.MR];
            tProcessed        = new bool[ctTriangleMesh.Triangles.Length];
        }
Ejemplo n.º 3
0
        public LRCornerResolver(ref LRTriangleMesh lrTriangleMesh, ref CTTriangleMesh ctTriangleMesh, ref bool[] tMarked, ref int[] vertexMapping)
        {
            this.lrTriangleMesh = lrTriangleMesh;
            this.ctTriangleMesh = ctTriangleMesh;
            this.tMarked        = tMarked;
            this.vertexMapping  = vertexMapping;

            O  = new List <int>();
            OS = new List <int>();
            IsolatedCorners = new List <int>();
        }
Ejemplo n.º 4
0
        public LRBuilder(Point3D[] vertices, Triangle[] triangles)
        {
            IFLTriangleMesh iflTriangleMesh = new IFLTriangleMesh();
            iflTriangleMesh.V = vertices;
            iflTriangleMesh.Triangles = triangles;

            IConverter<CTTriangleMesh> iflToCt = Converter.Converter.GetSpecificConverter<IFLTriangleMesh, CTTriangleMesh>(iflTriangleMesh);
            DateTime startTime = DateTime.Now;

            this.ctTriangleMesh = iflToCt.Convert();

            DateTime endTime = DateTime.Now;
            TimeSpan span = endTime.Subtract(startTime);

            Init();
        }
Ejemplo n.º 5
0
        public LRBuilder(CTTriangleMesh ctTriangleMesh)
        {
            this.ctTriangleMesh = ctTriangleMesh;

            Init();
        }