Esempio n. 1
0
        public List <Int16Triple> GetVoxels()
        {
            List <Int16Triple> list = new List <Int16Triple>();
            ByteMatrix         mat  = FillMesh();

            for (int k = 0; k < mat.depth; k++)
            {
                for (int j = 0; j < mat.height; j++)
                {
                    for (int i = 0; i < mat.width; i++)
                    {
                        if (mat.GetValue(i, j, k) == 255)
                        {
                            Int16Triple t = new Int16Triple(i + mat.stx, j + mat.sty, k + mat.stz);
                            list.Add(t);
                        }
                    }
                }
            }
            return(list);
        }
Esempio n. 2
0
 private bool IncludePredicate(int x, int y, int z)
 {
     return(bmp.GetValue(x, y, z) == includeColor);
 }