From: Charlotte Smith on
Hi,

I'm not sure whether this is something that Matlab has a built in function for, but if anyone knows of anything that would be really helpful!

I have a set of 3D coordinates that relate to the vertices of an irregular polyhedron. I have used these coordinates to generate the outer surface of the shape; however, I also need to determine the XYZ coordinates of each pixel within the boundaries of that polyhedron. So, is there some function that will output the coordinates of each of the pixels contained within a polyhedron, if I input the coordinates of the vertices?

I hope this makes sense.

Many thanks

Charlotte
From: Matt J on


See VERT2CON on the file exchange

http://www.mathworks.com/matlabcentral/fileexchange/7895-vert2con-vertices-to-constraints

It will give you inequalities that all points in the polyhedron must satisfy. You can use the inequalities to test whether pixels are inside the polyhedron or not.
 | 
Pages: 1
Prev: regarding dec2bin
Next: rotation of checkboard