コード例 #1
0
        private static void Test()
        {
            TestParms parm = TestParms.CreateParmsForEngine();
            BitMap3d  bmp  = new BitMap3d(parm.image.data, parm.image.width, parm.image.height, parm.image.depth);

            for (int i = 0; i < bmp.data.Length; i++)
            {
                if (bmp.data[i] >= parm.min && bmp.data[i] <= parm.max)
                {
                    bmp.data[i] = BitMap3d.WHITE;
                }
                else
                {
                    bmp.data[i] = BitMap3d.BLACK;
                }
            }
            CuberilleProcessor smc = new CuberilleProcessor(bmp);
            Mesh m = smc.GeneratorSurface();

            PlyManager.Output(m, @"D:\VTKproj\engine_cubic.ply");
        }
コード例 #2
0
 public CuberilleProcessor(BitMap3d bitmap)
 {
     bmp = bitmap;
 }