- #1
DivergentSpectrum
- 149
- 15
Im trying to construct a regular grid in a rectangular box in 3 dimensional space
heres what i have to work with:
x has a range between xmin and xmax
y has a range beween ymin and ymax
z has a range between zmin and zmax
the total number of points is limited to a specific number n
i want the height,width,and length=pixelsize of each box in the grid to be equal.
i want to find the formula for pixelsize and a,b,c so that
xmin+pixelsize*(a-1)=xmax
ymin+pixelsize*(b-1)=ymax
zmin+pixelsize*(c-1)=zmax
where a,b,c is the number of x,y,z coordinates respectively
i don't know why this is turning out to be so difficult please help thanks
heres what i have to work with:
x has a range between xmin and xmax
y has a range beween ymin and ymax
z has a range between zmin and zmax
the total number of points is limited to a specific number n
i want the height,width,and length=pixelsize of each box in the grid to be equal.
i want to find the formula for pixelsize and a,b,c so that
xmin+pixelsize*(a-1)=xmax
ymin+pixelsize*(b-1)=ymax
zmin+pixelsize*(c-1)=zmax
where a,b,c is the number of x,y,z coordinates respectively
i don't know why this is turning out to be so difficult please help thanks
Last edited: