
(/VERSIONCHECK 2) 

(DEFUN |MESH;numberCheck| (|nums| $)
  (PROG (#1=#:G1807 #2=#:G1805 #3=#:G1809 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |i| (SPADCALL |nums| (QREFELT $ 8)) . #4=(|MESH;numberCheck|))
        (LETT #3# (SPADCALL |nums| (QREFELT $ 9)) . #4#) G190
        (COND ((> |i| #3#) (GO G191)))
        (SEQ
         (EXIT
          (COND
           ((COMPLEXP
             (SPADCALL |nums|
                       (PROG1 (LETT #2# |i| . #4#)
                         (|check-subtype| (> #2# 0) '(|PositiveInteger|) #2#))
                       (QREFELT $ 11)))
            (PROGN
             (LETT #1#
                   (|error|
                    "An unexpected complex number was encountered in the calculations.")
                   . #4#)
             (GO #1#))))))
        (LETT |i| (+ |i| 1) . #4#) (GO G190) G191 (EXIT NIL)))
      #1# (EXIT #1#))))) 

(DEFUN |MESH;makePt| (|x| |y| |z| |c| $)
  (PROG (|l|)
    (RETURN
     (SPADCALL (LETT |l| (LIST |x| |y| |z| |c|) |MESH;makePt|)
               (QREFELT $ 13))))) 

(DEFUN |MESH;ptFunc;3MMM;3| (|f| |g| |h| |c| $)
  (PROG ()
    (RETURN (SEQ (CONS #'|MESH;ptFunc;3MMM;3!0| (VECTOR $ |c| |h| |g| |f|)))))) 

(DEFUN |MESH;ptFunc;3MMM;3!0| (|z1| |z2| $$)
  (PROG (|f| |g| |h| |c| $)
    (LETT |f| (QREFELT $$ 4) . #1=(|MESH;ptFunc;3MMM;3|))
    (LETT |g| (QREFELT $$ 3) . #1#)
    (LETT |h| (QREFELT $$ 2) . #1#)
    (LETT |c| (QREFELT $$ 1) . #1#)
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (PROG (|z| |y| |x|)
        (RETURN
         (SEQ (LETT |x| (SPADCALL |z1| |z2| |f|) NIL)
              (LETT |y| (SPADCALL |z1| |z2| |g|) NIL)
              (LETT |z| (SPADCALL |z1| |z2| |h|) NIL)
              (EXIT
               (|MESH;makePt| |x| |y| |z| (SPADCALL |x| |y| |z| |c|) $))))))))) 

(DEFUN |MESH;meshPar2Var;TsM2SLTs;4| (|sp| |ptFun| |uSeg| |vSeg| |opts| $)
  (PROG (|space| |aProp| #1=#:G1838 |lProp| #2=#:G1837 |l| #3=#:G1836 |someV|
         |llp| |someU| |lp| |pt| |iu| |iv| |vstep| |ustep| |vNum| |uNum|)
    (RETURN
     (SEQ (LETT |llp| NIL . #4=(|MESH;meshPar2Var;TsM2SLTs;4|))
          (LETT |uNum|
                (SPADCALL |opts| (SPADCALL (QREFELT $ 20)) (QREFELT $ 23))
                . #4#)
          (LETT |vNum|
                (SPADCALL |opts| (SPADCALL (QREFELT $ 24)) (QREFELT $ 25))
                . #4#)
          (LETT |ustep|
                (DIV-DF-I
                 (SUB-DF (SPADCALL |uSeg| (QREFELT $ 27))
                         (SPADCALL |uSeg| (QREFELT $ 28)))
                 |uNum|)
                . #4#)
          (LETT |vstep|
                (DIV-DF-I
                 (SUB-DF (SPADCALL |vSeg| (QREFELT $ 27))
                         (SPADCALL |vSeg| (QREFELT $ 28)))
                 |vNum|)
                . #4#)
          (LETT |someV| (SPADCALL |vSeg| (QREFELT $ 28)) . #4#)
          (SEQ (LETT |iv| |vNum| . #4#) G190 (COND ((< |iv| 0) (GO G191)))
               (SEQ
                (COND
                 ((ZEROP |iv|)
                  (LETT |someV| (SPADCALL |vSeg| (QREFELT $ 27)) . #4#)))
                (LETT |lp| NIL . #4#)
                (LETT |someU| (SPADCALL |uSeg| (QREFELT $ 28)) . #4#)
                (SEQ (LETT |iu| |uNum| . #4#) G190
                     (COND ((< |iu| 0) (GO G191)))
                     (SEQ
                      (COND
                       ((ZEROP |iu|)
                        (LETT |someU| (SPADCALL |uSeg| (QREFELT $ 27)) . #4#)))
                      (LETT |pt| (SPADCALL |someU| |someV| |ptFun|) . #4#)
                      (|MESH;numberCheck| |pt| $)
                      (LETT |lp| (CONS |pt| |lp|) . #4#)
                      (EXIT (LETT |someU| (ADD-DF |someU| |ustep|) . #4#)))
                     (LETT |iu| (+ |iu| -1) . #4#) (GO G190) G191 (EXIT NIL))
                (LETT |llp| (CONS |lp| |llp|) . #4#)
                (EXIT (LETT |someV| (ADD-DF |someV| |vstep|) . #4#)))
               (LETT |iv| (+ |iv| -1) . #4#) (GO G190) G191 (EXIT NIL))
          (LETT |lProp|
                (PROGN
                 (LETT #3# NIL . #4#)
                 (SEQ (LETT |l| NIL . #4#) (LETT #2# |llp| . #4#) G190
                      (COND
                       ((OR (ATOM #2#) (PROGN (LETT |l| (CAR #2#) . #4#) NIL))
                        (GO G191)))
                      (SEQ
                       (EXIT
                        (LETT #3# (CONS (SPADCALL (QREFELT $ 30)) #3#) . #4#)))
                      (LETT #2# (CDR #2#) . #4#) (GO G190) G191
                      (EXIT (NREVERSE #3#))))
                . #4#)
          (SEQ (LETT |aProp| NIL . #4#) (LETT #1# |lProp| . #4#) G190
               (COND
                ((OR (ATOM #1#) (PROGN (LETT |aProp| (CAR #1#) . #4#) NIL))
                 (GO G191)))
               (SEQ (SPADCALL |aProp| 'NIL (QREFELT $ 32))
                    (EXIT (SPADCALL |aProp| 'NIL (QREFELT $ 33))))
               (LETT #1# (CDR #1#) . #4#) (GO G190) G191 (EXIT NIL))
          (LETT |aProp| (SPADCALL (QREFELT $ 30)) . #4#)
          (SPADCALL |aProp| 'NIL (QREFELT $ 32))
          (SPADCALL |aProp| 'NIL (QREFELT $ 33)) (LETT |space| |sp| . #4#)
          (SPADCALL |space| |llp| |lProp| |aProp| (QREFELT $ 37))
          (EXIT |space|))))) 

(DEFUN |MESH;meshPar2Var;M2SLTs;5| (|ptFun| |uSeg| |vSeg| |opts| $)
  (PROG (|sp|)
    (RETURN
     (SEQ (LETT |sp| (SPADCALL (QREFELT $ 39)) |MESH;meshPar2Var;M2SLTs;5|)
          (EXIT (SPADCALL |sp| |ptFun| |uSeg| |vSeg| |opts| (QREFELT $ 38))))))) 

(PUT '|MESH;zCoord| '|SPADreplace| '(XLAM (|x| |y| |z|) |z|)) 

(DEFUN |MESH;zCoord| (|x| |y| |z| $) |z|) 

(DEFUN |MESH;meshPar2Var;3MU2SLTs;7|
       (|xFun| |yFun| |zFun| |colorFun| |uSeg| |vSeg| |opts| $)
  (COND
   ((QEQCAR |colorFun| 0)
    (SPADCALL (SPADCALL |xFun| |yFun| |zFun| (QCDR |colorFun|) (QREFELT $ 17))
              |uSeg| |vSeg| |opts| (QREFELT $ 40)))
   ('T
    (SPADCALL
     (SPADCALL |xFun| |yFun| |zFun| (CONS (|function| |MESH;zCoord|) $)
               (QREFELT $ 17))
     |uSeg| |vSeg| |opts| (QREFELT $ 40))))) 

(DEFUN |MESH;meshFun2Var;MU2SLTs;8| (|zFun| |colorFun| |xSeg| |ySeg| |opts| $)
  (SPADCALL (LIST #'|MESH;meshFun2Var;MU2SLTs;8!0|)
            (LIST #'|MESH;meshFun2Var;MU2SLTs;8!1|) |zFun| |colorFun| |xSeg|
            |ySeg| |opts| (QREFELT $ 42))) 

(DEFUN |MESH;meshFun2Var;MU2SLTs;8!1| (|z1| |z2| $$) |z2|) 

(DEFUN |MESH;meshFun2Var;MU2SLTs;8!0| (|z1| |z2| $$) |z1|) 

(DEFUN |MeshCreationRoutinesForThreeDimensions| #1=()
  (PROG #1#
    (RETURN
     (PROG (#2=#:G1890)
       (RETURN
        (COND
         ((LETT #2#
                (HGET |$ConstructorCache|
                      '|MeshCreationRoutinesForThreeDimensions|)
                . #3=(|MeshCreationRoutinesForThreeDimensions|))
          (|CDRwithIncrement| (CDAR #2#)))
         ('T
          (UNWIND-PROTECT
              (PROG1
                  (CDDAR
                   (HPUT |$ConstructorCache|
                         '|MeshCreationRoutinesForThreeDimensions|
                         (LIST
                          (CONS NIL
                                (CONS 1
                                      (|MeshCreationRoutinesForThreeDimensions;|))))))
                (LETT #2# T . #3#))
            (COND
             ((NOT #2#)
              (HREM |$ConstructorCache|
                    '|MeshCreationRoutinesForThreeDimensions|))))))))))) 

(DEFUN |MeshCreationRoutinesForThreeDimensions;| ()
  (PROG (|dv$| $ |pv$|)
    (RETURN
     (PROGN
      (LETT |dv$| '(|MeshCreationRoutinesForThreeDimensions|)
            . #1=(|MeshCreationRoutinesForThreeDimensions|))
      (LETT $ (GETREFV 46) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|MeshCreationRoutinesForThreeDimensions|
                  NIL (CONS 1 $))
      (|stuffDomainSlots| $)
      (SETF |pv$| (QREFELT $ 3))
      $)))) 

(MAKEPROP '|MeshCreationRoutinesForThreeDimensions| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|Integer|) (|Point| 10) (0 . |minIndex|)
              (5 . |maxIndex|) (|DoubleFloat|) (10 . |elt|) (|List| 10)
              (16 . |point|) (|Mapping| 7 10 10) (|Mapping| 10 10 10)
              (|Mapping| 10 10 10 10) |MESH;ptFunc;3MMM;3| (|PositiveInteger|)
              (|ViewDefaultsPackage|) (21 . |var1StepsDefault|)
              (|List| (|DrawOption|)) (|DrawOptionFunctions0|)
              (25 . |var1Steps|) (31 . |var2StepsDefault|) (35 . |var2Steps|)
              (|Segment| 10) (41 . |lo|) (46 . |hi|)
              (|SubSpaceComponentProperty|) (51 . |new|) (|Boolean|)
              (55 . |close|) (61 . |solid|) (|List| (|List| 7)) (|List| 29)
              (|ThreeSpace| 10) (67 . |mesh|) |MESH;meshPar2Var;TsM2SLTs;4|
              (75 . |create3Space|) |MESH;meshPar2Var;M2SLTs;5|
              (|Union| 16 '"undefined") |MESH;meshPar2Var;3MU2SLTs;7|
              |MESH;meshFun2Var;MU2SLTs;8| (|Expression| 6) (|Mapping| 10 10))
           '#(|ptFunc| 79 |meshPar2Var| 87 |meshPar1Var| 115 |meshFun2Var| 125)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 45
                                                 '(1 7 6 0 8 1 7 6 0 9 2 7 10 0
                                                   6 11 1 7 0 12 13 0 19 18 20
                                                   2 22 18 21 18 23 0 19 18 24
                                                   2 22 18 21 18 25 1 26 10 0
                                                   27 1 26 10 0 28 0 29 0 30 2
                                                   29 31 0 31 32 2 29 31 0 31
                                                   33 4 36 0 0 34 35 29 37 0 36
                                                   0 39 4 0 14 15 15 15 16 17 7
                                                   0 36 15 15 15 41 26 26 21 42
                                                   5 0 36 36 14 26 26 21 38 4 0
                                                   36 14 26 26 21 40 6 0 36 44
                                                   44 44 45 26 21 1 5 0 36 15
                                                   41 26 26 21 43)))))
           '|lookupComplete|)) 

(MAKEPROP '|MeshCreationRoutinesForThreeDimensions| 'NILADIC T) 
