Exemple #1
0
        public List <MeshPointKey> MoveToMeshPoint(GEMSMesh mesh)
        {
            List <MeshPointKey> keys = new List <MeshPointKey>();

            if (mesh != null)
            {
                int indexX, indexY, indexZ;

                Vector3 meshPoint = mesh.GetNearestMeshPoint(this.position, out indexX, out indexY, out indexZ);

                keys.Add(MeshPointKey.Key(indexX, indexY, indexZ));
            }

            return(keys);
        }
Exemple #2
0
        public List <MeshPointKey> MoveToMeshPoint(GEMSMesh mesh)
        {
            List <MeshPointKey> keys = new List <MeshPointKey> ( );

            if (mesh != null)
            {
                int startX, startY, startZ;
                int endX, endY, endZ;

                Vector3 meshPoint1 = mesh.GetNearestMeshPoint(this.node1, out startX, out startY, out startZ);
                Vector3 meshPoint2 = mesh.GetNearestMeshPoint(this.node2, out endX, out endY, out endZ);

                keys.Add(MeshPointKey.Key(startX, startY, startZ));
                keys.Add(MeshPointKey.Key(endX, endY, endZ));
            }

            return(keys);
        }