Exemple #1
0
        public bool Intersects(TriangleMesh meshA, TriangleMesh meshB, string dirName, bool strict = false)
        {
            if (!dirMeshes.ContainsKey(dirName))
            {
                throw new InvalidParameterException(2);
            }

            if (dirMeshes[dirName].Count == 0)
            {
                TransformFaceSet(dirName, directions[dirName]);
            }

            var meshATrans = dirMeshes[dirName][meshA.Name];
            var meshBTrans = dirMeshes[dirName][meshB.Name];

            return(strict ? directionalOperators.AboveOfStrict(meshATrans, meshBTrans) : directionalOperators.AboveOfRelaxed(meshATrans, meshBTrans));
        }
Exemple #2
0
        public void AboveOfStrict()
        {
            var result = directionalOperators.AboveOfStrict(spatialRepository.MeshesAsMatrix);

            PrintOut(result, "AboveOfStrict");
        }