/** * legacy -- for some scripts with early isosurface slabbing * * @param s * @param isCap * @return slabInfo object */ public static Object[] getCapSlabObject(String s, boolean isCap) { try { if (s.indexOf("array") == 0) { String[] pts = PT.split(s.substring(6, s.length() - 1), ","); return TempArray.getSlabObjectType( T.boundbox, new P3[] { (P3) Escape.uP(pts[0]), (P3) Escape.uP(pts[1]), (P3) Escape.uP(pts[2]), (P3) Escape.uP(pts[3]) }, isCap, null); } Object plane = Escape.uP(s); if (plane instanceof P4) return TempArray.getSlabObjectType(T.plane, plane, isCap, null); } catch (Exception e) { // } return null; }
public void resetSlab() { slabPolygons(TempArray.getSlabObjectType(T.none, null, false, null), false); }