Beispiel #1
0
 /// <summary>
 /// fills a solid sphere
 /// </summary>
 /// <param name="colix">the color index</param>
 /// <param name="diameter">pixel count</param>
 /// <param name="x">center x</param>
 /// <param name="y">center y</param>
 /// <param name="z">center z</param>
 public void fillSphereCentered(short colix, float diameter, float x, float y, float z)
 {
     if (diameter <= 1)
     {
         //    plotPixelClipped(colix, x, y, z);
     }
     else
     {
         NuSceneBuffer3D.NuBufferMeshItem mesh = new NuSceneBuffer3D.NuBufferMeshItem();
         mesh.mesh        = Mesh.Sphere(gDevice, /*diameter*/ 1.0f, 3, 3);
         mesh.translation = new Vector3(x, y, z);
         currentSceneBuffer.meshes.Add(mesh);
         //sphere3d.render(getShades(colix), ((colix & TRANSLUCENT_MASK) != 0), diameter, x, y, z);
     }
 }
 /// <summary>
 /// fills a solid sphere
 /// </summary>
 /// <param name="colix">the color index</param>
 /// <param name="diameter">pixel count</param>
 /// <param name="x">center x</param>
 /// <param name="y">center y</param>
 /// <param name="z">center z</param>
 public void fillSphereCentered(short colix, float diameter, float x, float y, float z)
 {
     if (diameter <= 1)
     {
     //    plotPixelClipped(colix, x, y, z);
     }
     else
     {
         NuSceneBuffer3D.NuBufferMeshItem mesh = new NuSceneBuffer3D.NuBufferMeshItem();
         mesh.mesh = Mesh.Sphere(gDevice, /*diameter*/1.0f, 3, 3);
         mesh.translation = new Vector3(x, y, z);
         currentSceneBuffer.meshes.Add(mesh);
         //sphere3d.render(getShades(colix), ((colix & TRANSLUCENT_MASK) != 0), diameter, x, y, z);
     }
 }