Exemple #1
0
        public void ArbitraryDirection()
        {
            var cubeX   = spatialRepository.MeshByGlobalId("3hXGhYvd59SukMqHINmzDS");
            var others  = spatialRepository.TriangleMeshes.ToList();
            var removed = others.Remove(cubeX);

            var result = new List <Pair <TriangleMesh, TriangleMesh> >();

            foreach (var meshB in others)
            {
                if (vectorDirOperator.Intersects(cubeX, meshB, "d1"))
                {
                    result.Add(new Pair <TriangleMesh, TriangleMesh>(cubeX, meshB));
                }
            }

            PrintOut(result, "ArbitraryDirectionD1");
        }
Exemple #2
0
        private TriangleMesh GetMesh(QLEntity qlEntityA)
        {
            var gloablIdA = qlEntityA.GetGloablId();

            if (string.IsNullOrEmpty(gloablIdA))
            {
                return(null);
            }

            var meshA = spatialRepository.MeshByGlobalId(gloablIdA);

            return(meshA);
        }