Example #1
0
 /**
  * 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 operate(A operand1, int index1, A operand2, int index2, A dst, int dstIndex) {
   final A tmp = temp.get();
   this.operand1.operate(operand1, index1, operand2, index2, tmp, 0);
   this.operand2.operate(tmp, 1);
   this.operator.operate(tmp, 0, tmp, 1, dst, dstIndex);
 }
Example #3
0
 public void resetSlab() {
   slabPolygons(TempArray.getSlabObjectType(T.none, null, false, null), false);
 }