title: How to speed up marching cubes?
body: <p>I'm using <a href="http://local.wasp.uwa.edu.au/~pbourke/geometry/polygonise/" rel="noreferrer">this marching cube algorithm</a> to draw 3D isosurfaces (ported into C#, outputting <code>MeshGeomtry3D</code>s, but otherwise the same). The resulting surfaces look great, but are taking a long time to calculate.</p>
  
  <p>Are there any ways to speed up marching cubes? The most obvious one is to simply reduce the spatial sampling rate, but this reduces the quality of the resulting mesh. I'd like to avoid this.</p>
  
  <p>I'm considering a two-pass system, where the first pass samples space much more coarsely, eliminating volumes where the field strength is well below my isolevel. Is this wise? What are the pitfalls?</p>
  
  <p><strong>Edit:</strong> the code has been profiled, and the bulk of CPU time is split between the marching cubes routine itself and the field strength calculation for each grid cell corner. The field calculations are beyond my control, so speeding up the cubes routine is my only option...</p>
  
  <p>I'm still drawn to the idea of trying to eliminate dead space, since this would reduce the number of calls to both systems considerably. </p>