Exemplo n.º 1
0
 SurfaceReader(SurfaceGenerator sg) {
   this.sg = sg;
   params = sg.getParams();
   marchingSquares = sg.getMarchingSquares();
   assocCutoff = params.assocCutoff;
   isXLowToHigh = params.isXLowToHigh;
   center = params.center;
   anisotropy = params.anisotropy;
   isAnisotropic = params.isAnisotropic;
   eccentricityMatrix = params.eccentricityMatrix;
   eccentricityMatrixInverse = params.eccentricityMatrixInverse;
   isEccentric = params.isEccentric;
   eccentricityScale = params.eccentricityScale;
   eccentricityRatio = params.eccentricityRatio;
   meshData = sg.getMeshData();
   jvxlData = sg.getJvxlData();
   setVolumeData(sg.getVolumeData());
   meshDataServer = sg.getMeshDataServer();
   cJvxlEdgeNaN = (char) (JvxlCoder.defaultEdgeFractionBase + JvxlCoder.defaultEdgeFractionRange);
 }
Exemplo n.º 2
0
 void discardTempData(boolean discardAll) {
   if (!discardAll) return;
   voxelData = null;
   sg.setMarchingSquares(marchingSquares = null);
   marchingCubes = null;
 }