I would like to rasterize a triangle in 3-D space… This is, if I have X,Y,Z generated by a meshgrid, I would like to mark all voxel centered on XYZ through which a triangle (specified by 3-D vertices) passes through. Are there any Matlab native methods to do this? It seems pretty basic, but I can't figure out what functions would be a straightforward path.
MATLAB: Rasterize a triangle in 3-D space.
rasterizetriangle
Best Answer