Hello,
I want to find the easiest way to extract from my list of coordinates points (a pack of nodes of my lattice), those who are located inbetween 2 parallel infinite 3D planes.
I used a cylinder as a thin volume with very a big radius to represent my 2 planes and used Select to extract the points contained inside but I think there is a better and more simple way to do that using maybe the 2 planes equations...
Thanks a lot !
EDIT 1 :
Using the suggestion of Ta'a Nwa Dombou
The variable "bonsnoeuds" contains a list of vectors.
valeur = Abs[
a (x0up - x0down) + b (y0up - y0down) + c (z0up - z0down)];
bonsnoeuds =
Select[bonsnoeuds,
Abs[a (#[[1]] - x0up) + b (#[[2]] - y0up) + c (#[[3]] - z0up)] +
Abs[a (#[[1]] - x0down) + b (#[[2]] - y0down) +
c (#[[3]] - z0down)] == valeur &];
This way is cheaper in time process than using the cylinder method. Also I noticed it is most efficient to use Select 2 times for 2 different conditions rather that overloading Select with multiple condition.