package.lisp 24.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
;;
;; Copyright 2002, 2007, 2013 Genworks International
;;
;; This source file is part of the General-purpose Declarative
;; Language project (GDL).
;;
;; This source file contains free software: you can redistribute it
;; and/or modify it under the terms of the GNU Affero General Public
;; License as published by the Free Software Foundation, either
;; version 3 of the License, or (at your option) any later version.
;; 
;; This source file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; Affero General Public License for more details.
;; 
;; You should have received a copy of the GNU Affero General Public
;; License along with this source file.  If not, see
;; <http://www.gnu.org/licenses/>.
;; 

(in-package :common-lisp-user)


(defpackage :gendl-boot (:export #:system-description #:system-home))

(eval-when (:compile-toplevel :load-toplevel :execute)
  #-(or allegro lispworks sbcl ccl abcl clisp)   (error "

D'oh! GenDL is not yet supported on ~a. If you would like to try porting it, start with this file,
gdl/base/common/genworks.lisp. 
Also, PortableAllegroserve is needed for the web framework. 
If you are interested in this effort we would love to hear from you at open-source@genworks.com.

" (lisp-implementation-type))

  
  ;;
  ;; Copied here from ./genworks.lisp for bootstrapping purposes. 
  ;;
  (defun gendl-boot:system-description (system-designator &optional (errorp t))
    (let (description (home (gendl-boot:system-home system-designator errorp)))
      (when home 
	(let ((description-file (merge-pathnames "description.isc" home)))
	  (when (probe-file description-file)
	    (setq description
		  (with-open-file (in description-file) (read in))))))
      (or description (format nil "~a Subsystem" system-designator))))


  (defun gendl-boot:system-home (system-designator &optional (errorp t))
    (if (find-package :asdf)
	(funcall (read-from-string "asdf:system-source-directory") system-designator)
	(when errorp (error "~&glisp:system-home was called, but cannot function because asdf is not loaded.~%")))))



(defpackage :gendl
  ;;
  ;; FLAG -- intention is to change this to :base eventually ---
  ;; "gendl" is name of overall system.
  ;;
  (:nicknames :gdl :genworks :base)
  (:documentation #.(gendl-boot:system-description :base))
  (:use :common-lisp)
  (:shadow #:the)
  (:export #:%bottom-margin%
           #:%left-margin%
           #:%paper-height%
           #:%paper-width%
           #:%projection-vector%
           #:%view-plane-inverse%
           #:%view-plane-normal%
           #:*%format%*
           #:*allowed-part-documentation-keywords*
76
	   #:*bias-to-double-float?*
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
           #:*color-table*
           #:*color-table-decimal*
           #:*colors-default*
           #:*compile-circular-reference-detection?*
           #:*compile-dependency-tracking?*
           #:*compile-documentation-database?*
           #:*compile-for-dgdl?*
           #:*compile-source-code-database?*
           #:*compile-with-dependency-recording?*
           #:*current-version*
           #:*curve-chords*
           #:*display-controls*
           #:*dummy-version*
           #:*ensure-lists-when-bashing?*
           #:*error-on-reserved-words?*
           #:*force-restore-slot-default?*
Dave Cooper's avatar
Dave Cooper committed
93
	   #:*override-non-settables?*
94
95
96
97
98
           #:*gdl-init-functions*
	   #:*gendl-version*
	   #:*gendl-patch-level*
           #:*ghostscript-path*
           #:*gs-path*
Dave Cooper's avatar
Dave Cooper committed
99
	   #:*sort-children?*
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
           #:*load-documentation-database?*
           #:*load-source-code-database?*
           #:*out-of-bounds-sequence-reference-action*
           #:*paper-size-plist*
           #:*paper-size-table*
           #:*patch-fasls*
           #:*patches-root-dir-default*
           #:*recompile-gdl?*
           #:*remember-previous-slot-values?*
           #:*report-gdl-redefinitions?*
           #:*reserved-word-protected-packages*
           #:*retain-object-identity-on-type-change?*
           #:*rgb-cube-colors*
           #:*run-with-circular-reference-detection?*
           #:*run-with-dependency-recording?*
           #:*run-with-dependency-tracking?*
           #:*skin*
           #:*stream*
           #:*ui-server*
           #:*undeclared-parameters-enabled?*
           #:*zero-epsilon*
           #:+kappa+
           #:+phi+
           #:2pi
           #:alist2plist
           #:always
           #:append-elements
           #:assembly-leaf-mixin
           #:assembly-node-mixin
           #:base-format
           #:base-rule-object
           #:base-spec-sheet
           #:binary-search
           #:cl
           #:cl-dir
           #:cl-lite
           #:clean
           #:clean-dir
           #:copy-files-to
           #:cyclic-nth
           #:decode-for-http
           #:defaulting
           #:defcompanion
           #:define-color-set
           #:define-colored-icon
           #:define-format
           #:define-icon
           #:define-lens
           #:define-object
           #:define-object-amendment
           #:define-object-documentation
151
	   #:define-object-macro-toplevel
152
153
154
155
156
157
158
159
160
           #:define-package
           #:define-skin
           #:define-view
           #:definition-tree
           #:defpart
           #:defwriter
           #:distribute
           #:distribute-dir
           #:div
161
162
	   #:dumplisp
	   #:dump-image
163
164
165
166
167
168
169
170
171
172
           #:encode-for-http
           #:ensure-list
           #:evaluate
           #:evaluate-object
           #:expandit
           #:find-messages-used-by
           #:find-messages-which-use
           #:flatten
           #:format-slot
           #:fround-to-nearest
173
	   #:gdl-app
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
           #:gdl-class
           #:gdl-format-class
           #:gdl-format-symbol
           #:gdl-object-symbol
           #:gdl-object-symbol
           #:gdl-remote
           #:gdl-skin-class
           #:get-version
           #:half
           #:ignore-errors-with-backtrace
           #:index-filter
           #:iso-8601-date
	   #:universal-time-from-iso-8601
	   #:universal-time-to-plist
           #:lastcar
           #:least
           #:let-streams
           #:list-elements
           #:list-hash
           #:list-of-numbers
Dave Cooper's avatar
Dave Cooper committed
194
           #:list-of-n-numbers
195
           #:lookup-color
Dave Cooper's avatar
Dave Cooper committed
196
	   #:load-glime
Dave Cooper's avatar
Dave Cooper committed
197
	   #:load-quicklisp
Dave Cooper's avatar
Dave Cooper committed
198
	   #:load-hotpatches
Dave Cooper's avatar
Dave Cooper committed
199
	   #:*quicklisp-home*
200
201
202
           #:make-canonical-part
           #:make-keyword
	   #:ensure-keyword
203
	   #:make-gdl-app
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
           #:make-keyword-sensitive
           #:make-object
           #:make-part
           #:make-self
           #:mapsend
           #:maptree
           #:match-regexp*
           #:max-of-elements
           #:merge-common-keys
           #:message-popup
           #:min-max-search
           #:min-of-elements
           #:most
           #:near-to?
           #:near-zero?
           #:never
           #:null-object
           #:null-part
           #:number-format
           #:number-round
           #:peruse-file
           #:pi/2
           #:plist-keys
           #:plist-values
           #:print-hash
           #:print-messages
           #:print-variables
231
           #:quantification
232
           #:query-collect
233
	   #:query-license-server
234
235
236
237
238
239
240
241
242
243
244
           #:read-safe-string
           #:read-snapshot
           #:readable-expression
           ;;#:record-source-file
	   #:register-init-function
           #:remote-object
           #:remove-plist-key
	   #:remove-plist-entry
           #:remove-plist-keys
           #:replace-substring
           #:restore-ui-object
245
	   #:reset-glm
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
           #:retitle-emacs
           #:retrieve
           #:rgb-cube-colors
           #:round-to-nearest
           #:safe-float
           #:safe-sort
           #:self
           #:send
           #:series
           #:set-format-slot
           #:set-self
           #:split
           #:standard-query
	   #:start-gendl!
           #:status-message
           #:string-append
           #:sum-elements
           #:tak
           #:the
           #:the-child
           #:the-element
           #:the-object
           #:to-double-float
           #:to-single-float
           #:traverse-tree
           #:twice
           #:undefine-object
           #:update
           #:update-gdl
	   #:update-gendl
           #:vanilla-mixin
           #:vanilla-mixin*
           #:vanilla-remote
           #:version-sequence
           #:with-error-handling
           #:with-format
           #:with-format-slots
           #:with-oracle
           #:with-version
           #:write-env
           #:write-objects
           #:write-plist
           #:write-the
           #:write-the-object
           #:xml-reader
           #:^2
	   #:room-report
293
294
	   #:*newspace*
	   #:*oldspace*
Dave Cooper's avatar
Dave Cooper committed
295
296
	   #:*onclick-function*
	   #:*already-loaded-systems*
Dave Cooper's avatar
Dave Cooper committed
297
	   #:*loaded-hotpatches*
298
	   #:*packages-to-lock*
Dave Cooper's avatar
Dave Cooper committed
299
	   #:*patch-url-base*
300
301
302
	   #:*warn-on-invalid-toplevel-inputs?
	   #:*invalid-aggregate-behavior*
	   ))
303
304
305


#-(or allegro lispworks sbcl ccl abcl ecl clisp) (error "Need package for mop:validate-superclass for currently running lisp.~%")
306
(defpackage :com.genworks.lisp
307
308
309
  (:documentation #.(gendl-boot:system-description :glisp))
  (:use :common-lisp)
  (:shadow #:intern)
310
  (:nicknames :glisp)
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
  (:import-from #+(or allegro abcl) :mop #+lispworks :hcl #+sbcl :sb-mop  #+ccl :ccl #+(or ecl clisp) :clos
		#:validate-superclass)
  (:export 
   ;;
   ;; Some implemented in gendl/base/source/genworks.lisp, the rest 
   ;; in gendl/glisp/source/genworks.lisp.
   ;;
   ;; FLAG -- alphabetize all these here in this package export list.
   ;;
   #:*external-text-format*
   #:*gdl-home*
   #:*gendl-home*
   #:*gdl-program-home*
   #:*gendl-program-home*
   #:*genworks-source-home*
   #:*gendl-source-home*
   #:*gdl-source-home*
   #:basic-command-line-arguments
   #:begin-redefinitions-ok
   #:current-directory
   #:define-constant
   #:direct-superclasses
   #:direct-superclass-names
   #:display-startup-banner
   #:end-redefinitions-ok
   #:ensure-string
   #:eql-specializer
   #:executable-homedir-pathname
   #:featurep
   #:find-feature-version
   #:gl-class-name
   #:gl-method-specializers
   #:hex-string-to-integer
   #:intern
   #:make-sans-value-equalp-hash-table
   #:make-sans-value-hash-table
   #:make-weak-hash-table
   #:make-versioned-features
   #:set-default-character-width
   #:set-default-float-format
   #:set-default-package
   #:set-defpackage-behavior
   #:set-local-compiler-tweaks
   #:set-features
   #:set-settings
   #:set-window-titles
   #:sexpr-from-file
   #:source-pathname
   #:system-description
   #:system-home
   #:set-genworks-source-home-if-known
   #:upcase
   #:validate-superclass
   #:with-definition-unit
   #:without-package-variance-warnings
   #:w-o-interrupts
   #:xref-off
   #:xref-on
	     
   #:*fasl-extension*
   #:concatenate-fasls
   #:directory-list
   #:file-directory-p
Dave Cooper's avatar
Dave Cooper committed
374
   #:run-command
375
   #:temporary-folder
376
   #:*temporary-folder-function*
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
   #:temporary-file

   #:find-gs-path
   #:get-pid
   #:run-gs
   #:set-gs-path
   #:run-program	     
   #:run-shell-command	     

   #:*enable-utf8?*
   #:*base64-encode-func*
   #:*base64-decode-func*
   #:class-slots
   #:gc-full
   #:get-backtrace
   #:initialize-multiprocessing
   #:local-port
   #:match-regexp
   #:patches-dir
   #:process-run-function
   #:remote-host
   #:replace-regexp
   #:room-report
   #:slot-definition-name
   #:snap-folder
   #:socket-bytes-written
   #:split-regexp
   #:with-heuristic-case-mode
   #:with-timeout-sym
   #:with-timeout
   #:without-redefinition-warnings


   #:close-old-areas
   #:open-old-areas
   #:get-mem-info
   #:gc-scavenge


   #:copy-directory
   #:copy-file
   #:delete-directory-and-files
   #:dump-memory
   #:implementation-identifier
   #:next-datestamp

   #:autoloaded-packages
   #:package-documentation
   #:function-documentation
   #:variable-documentation

   #:parse-xml

   #:rsync
   ))

(defpackage :geom-base
  (:use :common-lisp :gdl)
  (:shadowing-import-from :gdl #:the)
  (:documentation #.(gendl-boot:system-description :geom-base))
  (:export #:keyed-transform*vector
	   #:with-translated-state
	   #:raphael
	   #:*raphael-translation*
	   #:make-vector
	   #:make-point
	   #:apply-make-point
	   #:merge-display-controls
	   #:*nominal-x-vector*
	   #:*nominal-y-vector*
	   #:*nominal-z-vector*
	   #:*nominal-x-vector-r*
	   #:*nominal-y-vector-r*
	   #:*nominal-z-vector-r*
	   #:*trimetric-normal-vector*
	   #:*trimetric-normal-vector-left*
	   #:*trimetric-normal-vector-right-rear*
	   #:*trimetric-normal-vector-left-rear*
	   #:*left-handed-transform?*
	   #:+lh-identity-matrix+
	   #:+nominal-origin+
	   #:*standard-views*
	   #:point-expression   
	   #:+postnet-bits+   
	   #:*hash-transforms?*
	   #:get-x
	   #:get-y
	   #:get-z
	   #:get-w
	   #:get-u
	   #:get-v
	   #:determinant
	   #:subtract-vectors
	   #:add-vectors
	   #:3d-distance
	   #:scalar*vector
	   #:matrix*vector
	   #:transpose-matrix
	   #:multiply-matrices
	   #:dot-vectors
	   #:alignment
	   #:make-transform
	   #:angle-between-vectors-d
	   #:angle-between-vectors
	   #:unitize-vector
	   #:orthogonal-component
	   #:same-direction-vectors?
	   #:parallel-vectors?
	   #:reverse-vector
	   #:cross-vectors
	   #:length-vector
	   #:zero-vector?
	   #:degree
	   #:radians-to-degrees
	   #:radians-to-grads
	   #:translate-along-vector
	   #:array-to-list
	   #:coincident-point?
	   #:projected-vector
	   #:rotate-point-d
	   #:rotate-point
	   #:rotate-vector
	   #:rotate-vector-d
	   #:inter-circle-sphere
	   #:inter-line-sphere
	   #:inter-line-plane
	   #:translate
	   #:create-obliqueness
	   #:proj-point-on-line
	   #:pythagorize
	   #:roll
	   #:rotation
	   #:transform-and-translate-point
	   #:transform-numeric-point
	   #:quaternion-to-rotation
	   #:quaternion-to-matrix
	   #:matrix-to-quaternion
	   #:matrix-to-rotation
	   #:normalize-quaternion
	   #:degrees-to-radians
	   #:acosd
	   #:asind
	   #:atand
	   #:midpoint
	   #:between?
	   #:curve-parameter-<
	   #:roughly-aligned-vectors?
	   #:distance-to-line
	   #:equi-space-points
	   #:sort-points-along-vector
	   #:bounding-box-from-points
	   #:flatten-lines
	   #:flatten-curves
530
531
	   #:point-on-plane? 
	   #:point-on-vector?
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591

	   #:arc
	   #:base-object
	   #:base-coordinate-system
	   #:base-geometry-object
	   #:bezier-curve
	   #:box
	   #:bbox
	   #:c-cylinder
	   #:circle
	   #:cone
	   #:cylinder
	   #:ellipse
	   #:global-filleted-polygon-projection
	   #:global-filleted-polyline
	   #:global-polygon-projection
	   #:ifs-output-mixin
	   #:global-polyline
	   #:graph
	   #:l-line
	   #:null-geometric-object
	   #:outline-specialization-mixin
	   #:point
	   #:route-pipe
	   #:sphere
	   #:spherical-cap
	   #:torus
	   #:cut-cylinder	 ;;do later
	   #:filleted-polyline	 ;; do later
	   #:line		 ;;do later
	   #:point 
	   #:polyline		  ;; do later
	   #:polygon-projection	  ;;do later
           
	   #:points-display
           
	   #:note
	   #:text-block
	   #:text-lines
	   #:typeset-block
	   #:typeset-blocks
	   #:base-drawing
	   #:base-view
	   #:document
	   #:horizontal-dimension
	   #:parallel-dimension
	   #:vertical-dimension
	   #:label
	   #:linear-dimension
	   #:leader-line
           
	   #:dxf
	   #:obj
	   #:pdf-multipage
	   #:pdf
	   #:pdf-raw
	   #:png
	   #:jpeg
	   #:vrml
	   #:x3d
592
	   #:scad
593
594
595
596
597
	   #:vector-graphics
             
           
	   #:pie-chart
           
598
599

	   #:fillet
Dave Cooper's avatar
Dave Cooper committed
600
	   #:constrained-fillet
601
602
603
	   #:constrained-line
	   #:constrained-arc

604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
	   #:*gs-text-alpha-bits*
	   #:*gs-graphics-alpha-bits*


	   ;;
	   ;; Implemented in gdl/geom-base/annotations/source/
	   ;;

	   #:angular-dimension 
	   #:sample-drawing 
	   #:generate-sample-drawing 
	   #:center-line 
	   #:*break-leaders?*
	   #:print-document
	   
	   ;;
	   ;; Implemented in gdl/geom-base/text/source/
	   ;;
	   #:general-note 
	   #:text-line

	   ;;
	   ;;
	   ;; FLAG -- consider exporting these if requested. 
	   ;;
	   ;;#:3d-vector-to-array
	   ;;#:array-to-3d-vector
           
	   ))


(defpackage :gdl-toplevel (:use))
(defpackage :gdl-rule (:size 25) (:use) 
            (:export #:%not-handled% #:write-env #:write-of #:%unbound%))
(defpackage :gdl-slots (:size 10000) (:use) (:export))
(defpackage :gdl-inputs (:size 10000) (:use) (:export))
(defpackage :gdl-trickle-downs (:use) (:export))
(defpackage :gdl-acc (:size 10000) (:use) (:export))
(defpackage :gdl-format (:use) (:export))
(defpackage :gdl-output (:use) (:export))


(defpackage :surf
  (:shadowing-import-from :gdl #:the)
  (:use :common-lisp :gdl :geom-base)
  (:documentation #.(gendl-boot:system-description :surf))
  (:shadow #:step)
  (:export #:make-geometry-kernel 
           #:*geometry-kernel* 
           #:*finalize-lofted-surfaces?*
           #:*chain-beziers-for-display?*
           #:curve 
           #:iso-curve
           #:trimmed-curve
           #:b-spline-curve 
           #:arc-curve
           #:elliptical-curve
           #:linear-curve
           #:fitted-curve
           #:planar-offset-curve
664
           ;;#:fillet
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
           #:projected-curve
           #:approximated-curve
           #:silhouette-curves
           #:dropped-curve
           #:surface 
           #:b-spline-surface
           #:extended-surface
           #:offset-surface
           #:offset-solid
           #:shelled-solid
           #:manifold-solid
           #:fitted-surface
           #:coons-surface
           #:surface-knot-reduction
           #:joined-surfaces
           #:compatible-surfaces
           #:compatible-curves
           #:extended-curve
           #:lofted-surface
           #:ruled-surface
           #:test-fitted-surface
           #:spherical-surface
           #:revolved-surface
           #:revolved-surfaces
           #:planar-surface
           #:rectangular-surface
           #:trimmed-surface
           #:approximated-subsurface
           #:basic-surface
           
           #:split-surface
           
           #:brep
           #:edge
           #:face
           #:iges-reader
           #:native-reader
           #:brep-reader
           #:step-reader
           #:composed-curve
           #:subdivided-curve
           #:composed-curves
           #:decomposed-curve
           #:decomposed-curves
           #:planar-section-curve
           #:planar-section-curves
           #:global-filleted-polyline-curves
           #:global-filleted-polyline-curve
           #:planar-contour-surface
           #:transformed-curve
           #:boxed-curve
           #:boxed-surface
           #:transformed-surface
           #:transformed-solid
           #:stitched-solid
           
           #:extruded-solid
           #:blended-solid
           
           #:get-3d-point-of
           #:get-parameter-of
           
           #:get-other-parameter-of
           #:get-uv-point-of
           #:get-point-on-surface
           #:get-point-on-curve
           #:get-point-on-other-curve
           
           #:%get-point-on-surface
           #:%get-point-on-curve
           
           
           #:iges #:native #:stl 
           
           
           #:step
           
           
           #:box-solid
           #:cone-solid
           #:cylinder-solid
           #:separated-solid
           #:subtracted-solid
           #:merged-solid
           #:validated-solid
           #:united-solid
           #:intersected-solid
           #:swept-solid
           #:brep-intersect
           #:brep-intersect?
           #:regioned-solid
           
           #:merged-brep
           
           #:general-sweep
           #:normal-sweep
           
           #:edge-blend-surface
           
           
           #:with-pinned-values
           #:pin-value-to-range
           
           #:fitted-conic
           
           #:*3d-approximation-tolerance-default*
           #:*boolean-operation-tolerance-default*
           #:*approximation-tolerance-factor*
           #:*brep-tolerance-default*
           #:*angle-tolerance-radians-default*
           #:*display-tolerance*
           #:*3d-tolerance-default*
           #:*brep-wireframe-tessellation?*
           #:*curve-tessellation?*
           #:*crease-angle-default*
           #:*output-units-default*
           #:*isos-default*
           #:*brep-isos-default*
           #:*brep-vrml-timeout*
           #:*nurbs-to-beziers-timeout*
           #:*boolean-allow-multiple-regions?*
           #:*boolean-error-on-invalid-brep?*
           
           #:iwbrep-sew-and-orient
           
           #:test-b-spline-surface
           #:normalized-curve
           #:surf-grid-points
           #:closed-boolean-operation
           #:closed-boolean-separate-operation
           #:global-brep-brep-solve
	   
	   #:non-rational-curve
	   #:spiral-curve
           
           #:get-faces-from-edge
           
           #:*tess-min-number-of-segments*
           #:*tess-max-3d-edge-factor*
           #:*tess-min-parametric-ratio*
           #:*tess-max-chord-height*
           #:*tess-max-angle-degrees*
           #:*tess-min-3d-edge*
           #:*tess-min-edge-ratio-uv*
           #:*tess-max-aspect-ratio*))

(defmacro gdl:define-package (name &rest body)
  `(defpackage ,name 
     (:use :common-lisp :gdl :geom-base :surf)
     (:shadowing-import-from :gdl #:the)
     (:shadowing-import-from :surf #:step)
     ,@body))


(gdl:define-package :gdl-user)


;;
;; FLAG -- stop using all these library packages in here!
;;
(eval-when (:compile-toplevel :load-toplevel :execute)
  (gdl:define-package :gwl
      ;;
      ;; FLAG moved this to a (use-package ...) in
      ;; gdl/gwl/source/genworks.lisp (until we can clean them
      ;; entirely)
      ;; 
      ;;(:use :net.aserve :net.aserve.client :net.uri :net.html.generator :cl-who)
      (:documentation #.(gendl-boot:system-description :gwl))
    (:shadow #:define-package)
    (:export
     #:define-package
     #:remote-object
     #:*req*
     #:*ent*
     #:*html-referrer*
     #:*instance-hash-table*
     #:*instance-finalizers*
     #:*max-node-depth*
     #:*developing?*
     #:*mime-file-types*
     #:*max-id-value*
     #:*server*
     #:*query-plist*
     #:*field-plist*
     #:*ssl-server*
     #:*adsense-code*
     #:*break-on-set-self?*
     #:*jump-to-toplevel-on-set-self?*
     #:*process-cookies?*
     #:*static-home*
     #:encode-root-path
     #:base-html-sheet
     #:skeleton-ui-element
     #:sheet-section
     #:session-control-mixin
     #:base-html-graphics-sheet
     #:color-palette
     #:crawl
     #:html-submit-button
     #:html-button
     #:html-checkbox
     #:html-radio-button
     #:html-select-choices
     #:html-file
     #:html-multi-line-text
     #:html-string
     #:html-password
     #:html-title
     #:html-anchor
     #:html-cell
     #:html-row
     #:html-table
     #:html-static-text
     #:untagify
     #:make-new-session-id
     #:html-format
     #:html-format
     ;;#:define-package
     #:my
     #:my-child
     #:from-my
     #:my-object
     #:defpage
     #:root-path-to-query-arg
     #:query-arg-to-root-path
     #:gwl-make-part
     #:gwl-make-object
     #:replace-substring
     #:custom-base-html-sheet-mixin
     #:fix-lhtml
     #:start-log-maker
     #:clear-log-buffer
     #:*log-report-buffer*
     #:pdf-output-sheet
     #:graphics-preferences
     #:application-mixin
     #:node-mixin
     #:gwl-rule-object
     #:*js-incremental-search*
   
     #:html-form
   
     #:form-mixin
     #:clear-all-instances
     #:clear-instance
   
     #:with-html-form
   
     #:publish-shared
     #:with-all-servers
     #:web-drawing
   
     #:infinite
   
     #:base64-decode-safe
     #:base64-encode-safe
     #:base64-decode-list
     #:base64-encode-list
   
     #:start-gwl
     ;;
     ;; FLAG -- test this in 1575 build
     ;;
     ;;#:update-gdl
     ;;#:*patch-fasls*
   
   
     ;;
     ;;
     ;;

     #:base-form-control
     #:button-form-control
     #:checkbox-form-control
     #:radio-form-control
     #:menu-form-control
     #:text-form-control
     #:number-form-control
     #:password-form-control
     #:file-form-control
     #:hidden-form-control
     #:object-form-control
     #:grid-form-control
   
     #:encode-for-ajax
     #:decode-from-ajax
     #:form-element-processor
   
     #:*clicked-x*
     #:*clicked-y*
   
     ;;
     ;; Ajax stuff
     ;;

     #:base-ajax-sheet
     #:base-ajax-graphics-sheet

     #:*standard-ajax-javascript*
     #:*ajax-timeout*
     #:*bypass-security-check?*
   
     #:with-cl-who
     #:with-cl-who-string
     #:with-htm
     #:publish-gwl-app
     #:publish-string-content
     )))



(defpackage :gwl-graphics 
  (:use :common-lisp)
  (:documentation #.(gendl-boot:system-description :gwl-graphics)))
Dave Cooper's avatar
Dave Cooper committed
980
981


982
(gdl:define-package :enterprise (:export #:gdl-app #:make-gdl-app #:*newspace* #:*oldspace*))
Dave Cooper's avatar
Dave Cooper committed
983

984
985
(gdl:define-package :glm (:export #:assembly))