Consider the situation in which I have a cuboid:


and a point in the cubiod


How do I find the distance from the closest surface of the cuboid?


1 Answer 1


How about:

SignedRegionDistance[Cuboid[{0, 0, 0}, {1, 1, 1}], {0.9, 0.4, 0.6}]

the negative sign tells you that the query point is inside the region.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.