Assign a 3D Zone to a collection of points
- August 25, 2025
- 1 reply
- 1083 views
Hello Community,
I’m back after some time away from MathCAD due to other types of projects. This time, I need your expertise to help me resolve the following:
I have several 3D zones defined by two opposite diagonal points, as shown in the figure below. I have prepared the zones as an m × 6 matrix, where each row is [x1 y1 z1 x2 y2 z2]. Row 0 → Zone 1, Row 1 → Zone 2, etc.


I also prepared a list of points as an N × 3 matrix. Let PTS be N × 3 with columns [x y z]:

My inVolume formula is producing the correct Boolean answer (1 or 0) depending on whether a point lies inside the volume or not. However, my matrix implementation is not producing the expected result. I would like also to work with units of length.




Attached is the MathCAD Prime 7 worksheet. You can reply in either MathCAD Prime 7 or 11.


