Changeset 44
- Timestamp:
- 06/13/08 08:46:50 (7 months ago)
- Files:
-
- trunk/solides.pro (modified) (10 diffs)
- trunk/tests/test_10.tex (modified) (2 diffs)
- trunk/tests/test_11.tex (modified) (1 diff)
- trunk/tests/test_13.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/solides.pro
r43 r44 1 1 %! 2 2 % PostScript prologue for pst-solides3d.tex. 3 % Version 3. 29, 2008/06/123 % Version 3.30, 2008/06/13 4 4 % 5 5 %% COPYRIGHT 2008 by Jean-Paul Vignault, Manuel Luque … … 1062 1062 10 dict begin 1063 1063 gsave 1064 dup isbool { 1065 /mybool exch def 1066 } { 1067 /mybool true def 1068 } ifelse 1064 1069 /l@pl@n exch def 1065 1070 /savestroke {SolidesDict /stroke get exec} def 1066 /stroke {l@pl@n projpath savestroke} def1071 /stroke {l@pl@n mybool projpath savestroke} def 1067 1072 /savefill {SolidesDict /fill get exec} def 1068 /fill {l@pl@n projpath savefill} def1073 /fill {l@pl@n mybool projpath savefill} def 1069 1074 } def 1070 1075 /eprojscene { … … 2952 2957 % dup isarray 2953 2958 % {/vect_echelle exch def} 2954 % if 2955 % CamView vect_echelle {angle_de_rot} 2959 % if% CamView vect_echelle {angle_de_rot} 2956 2960 3dto2d 2957 2961 } def … … 5592 5596 /planshowbase { 5593 5597 3 dict begin 5598 dup isbool { 5599 /mybool exch def 5600 } { 5601 /mybool true def 5602 } ifelse 5594 5603 dup isstring { 5595 5604 /couleur2 exch def … … 5603 5612 /couleur2 (vert) def 5604 5613 } ifelse 5605 bprojscene5614 mybool bprojscene 5606 5615 couleur1 cvx exec 5607 5616 newpath … … 5630 5639 /planshowbase3d { 5631 5640 7 dict begin 5641 dup isbool { 5642 /mybool exch def 5643 } { 5644 /mybool true def 5645 } ifelse 5632 5646 dup dup isarray exch isplan not and { 5633 5647 /table exch def … … 5654 5668 } ifelse 5655 5669 /plan exch def 5656 plan couleur1 couleur2 planshowbase5670 plan couleur1 couleur2 mybool planshowbase 5657 5671 plan plangetorigine /I defpoint3d 5658 5672 plan plangetbase … … 5664 5678 solidgridOff 5665 5679 drawsolid** 5680 end 5681 } def 5682 5683 %% syntaxe : plantype x y z plantranslate --> - 5684 /plantranslate { 5685 4 dict begin 5686 /M defpoint3d 5687 /plan exch def 5688 plan isplan not { 5689 (Erreur : mauvais type d argument dans plantranslate) == 5690 quit 5691 } if 5692 plan plan plangetorigine M addv3d planputorigine 5693 end 5694 } def 5695 5696 % syntaxe : alpha_x alpha_y alpha_z rotateOpplan --> - 5697 /rotateOplan { 5698 4 dict begin 5699 /Rxyz defpoint3d 5700 /plan exch def 5701 plan isplan not { 5702 (Erreur : mauvais type d argument dans rotateOplan) == 5703 quit 5704 } if 5705 plan plan plangetorigine Rxyz rotateOpoint3d planputorigine 5706 5707 plan plangetbase 0 getp3d /U defpoint3d 5708 plan plangetbase 1 getp3d /V defpoint3d 5709 plan [ 5710 U Rxyz rotateOpoint3d 5711 V Rxyz rotateOpoint3d 5712 ] planputbase 5666 5713 end 5667 5714 } def … … 5828 5875 /segment_inter_plan { 5829 5876 4 dict begin 5877 dup isplan {plan2eq} if 5830 5878 /plan exch def 5831 5879 plan aload pop … … 9173 9221 } if 9174 9222 } if 9223 % dup RotX RotY RotZ rotateOplan 9175 9224 /l@pl@n exch def 9176 9225 l@pl@n newplan 9177 9226 gere_pstricks_opt 9178 9227 % noir 9228 l@pl@n RotX RotY RotZ rotateOplan 9229 l@pl@n CX CY CZ plantranslate 9179 9230 setTimes 9180 solidplanmarks {l@pl@n p lanmarks} if9181 solidplangrid {l@pl@n p lanquadrillage} if9182 solidshowbase {l@pl@n p lanshowbase} if9183 solidshowbase3d {l@pl@n p lanshowbase3d} if9231 solidplanmarks {l@pl@n projectionsifacevisible planmarks} if 9232 solidplangrid {l@pl@n projectionsifacevisible planquadrillage} if 9233 solidshowbase {l@pl@n projectionsifacevisible planshowbase} if 9234 solidshowbase3d {l@pl@n projectionsifacevisible planshowbase3d} if 9184 9235 } def 9185 9236 trunk/tests/test_10.tex
r43 r44 61 61 ] 62 62 \psSolid[object=load, 63 deactivatecolor, 63 64 load=test1](-3,-2,-1) 64 65 \psSolid[object=load, 66 deactivatecolor, 65 67 plansepare={[0 0 1 -2]}, 66 68 load=test0, … … 68 70 action=none] 69 71 \psSolid[object=load, 72 deactivatecolor, 70 73 load=double1, 71 74 numfaces=all] 72 75 \psSolid[object=load, 76 deactivatecolor, 73 77 load=double0](0,0,2) 74 78 \composeSolid trunk/tests/test_11.tex
r34 r44 212 212 %% } 213 213 \end{pspicture*} 214 \end{center} 215 216 \newpage 217 218 \section {Translation, rotations} 219 220 \begin{center} 221 % fabrique du bi-cone 222 %\codejps{ 223 %-5 3 0 [18 60] newcone 224 % 5 3 0 [18 60] newcone 225 % dup solidfacesreverse 226 % solidfuz 227 %(bicone) writesolidfile 228 % } 229 \begin{pspicture}(-5,-6)(8,7) 230 \psset{SphericalCoor=true,viewpoint=50 -30 20,Decran=50}% 231 \psframe[fillstyle=solid,fillcolor=gray!50](-5,-6)(8,7)% 232 \psSolid[object=grille,base=-4 4 -4 8,linecolor={[rgb]{0.72 0.72 0.5}}](0,0,-5)% 233 \psSolid[object=plan,action=draw, 234 definition=equation, 235 visibility=false, 236 RotZ=90, 237 plangrid, 238 args={[1 0 0 0] 90}, 239 base=-3 3 -6 5,planmarks,showBase]% 240 %% \psSolid[object=plan,action=draw, 241 %% definition=equation,%RotZ=90, 242 %% args={[1 0 0 -0.25] 90}, 243 %% base=-3 3 -6 5,planmarks,showBase](0,5,1)% 244 %\axesIIID[linecolor=blue](0,0,0)(4,3,6)% 245 \end{pspicture} 214 246 \end{center} 215 247 trunk/tests/test_13.tex
r28 r44 26 26 \psframe(-5,-4)(6,9) 27 27 \psSolid[object=cube, 28 action=draw ,28 action=draw*, 29 29 intersectiontype=0, 30 30 intersectionplan={[1 0 .5 2] [1 0 .5 -1]}, … … 32 32 intersectioncolor=(bleu) (rouge), 33 33 % hollow=true, 34 %fillcolor=yellow,35 %incolor=red,34 fillcolor=yellow, 35 incolor=red, 36 36 % numfaces=all, 37 37 % rm=4,
