Skip to content

Commit

Permalink
move TriD demos to Graphics/TriD/
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 31, 2024
1 parent 1e9de6f commit 4f9b18b
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 190 deletions.
29 changes: 1 addition & 28 deletions Basic/Pod/FAQ.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1171,41 +1171,14 @@ appropriate slices of the 3D ndarray C<$cube> .

=head2 Q: 6.20 Where are test files for the graphics modules?


This answer applies mainly to PDL::Graphics::TriD (PDL's device
independent 3D graphics model) which is the trickiest one in this
respect. You find some test scripts in Demos/TriD in the distribution.
There are also F<3dtest.pl> and F<line3d.pl> in the PDL/Example/TriD
directory. After you have built PDL you can do:

perl -Mblib Example/TriD/3dtest.pl

perl -Mblib Example/TriD/line3d.pl

to try the two TriD test programs. They only exercise one TriD function
each but their simplicity makes it easy to debug if needed with the
Perl debugger, see L<perldebug>.

The programs in the Demo directory can be run most easily from the
The demo programs can be run most easily from the
C<perldl> or C<pdl2> interactive shell:

perl -Mblib perldl or perl -Mblib Perldl2/pdl2

followed by C<demo 3d> or C<demo 3d2> at the prompt.
C<demo> by itself will give you a list of the available PDL demos.

You can run the test scripts in the Demos/TriD directory manually
by changing to that directory and running

perl -Mblib <testfile>


where C<< testfile >> ; should match the pattern C<test[3-9].p>
and watch the results. Some of the tests should bring up a window
where you can control (twiddle) the 3D objects with the mouse. Try using
mouse button 1 for turning the objects in 3D space, mouse button 3
to zoom in and out, and 'q' to advance to the next stage of the test.


=head2 Q: 6.21 What is TriD or PDL::TriD or PDL::Graphics::TriD?

Expand Down
3 changes: 0 additions & 3 deletions Demos/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ WriteMakefile(
PM => {
'General.pm' => '$(INST_LIBDIR)/Demos/General.pm',
'Demos.pm' => '$(INST_LIBDIR)/Demos.pm',
'TriD1.pm' => '$(INST_LIBDIR)/Demos/TriD1.pm',
'TriD2.pm' => '$(INST_LIBDIR)/Demos/TriD2.pm',
'TriDGallery.pm' => '$(INST_LIBDIR)/Demos/TriDGallery.pm',
'BAD_demo.pm' => '$(INST_LIBDIR)/Demos/BAD_demo.pm',
'Sound.pm' => '$(INST_LIBDIR)/Demos/Sound.pm',
'Transform_demo.pm' => '$(INST_LIBDIR)/Demos/Transform_demo.pm',
Expand Down
17 changes: 0 additions & 17 deletions Example/TriD/3dtest.pl

This file was deleted.

18 changes: 0 additions & 18 deletions Example/TriD/line3d.pl

This file was deleted.

111 changes: 0 additions & 111 deletions Example/TriD/old_trid_clip.pl

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions Graphics/TriD/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ WriteMakefile (
NAME => "PDL::Graphics::TriD",
VERSION_FROM => '../../Basic/PDL.pm',
NO_MYMETA => 1,
PM => {
'TriD.pm' => '$(INST_LIBDIR)/TriD.pm',
'DemoTriD1.pm' => '$(INST_LIB)/PDL/Demos/TriD1.pm',
'DemoTriD2.pm' => '$(INST_LIB)/PDL/Demos/TriD2.pm',
'DemoTriDGallery.pm' => '$(INST_LIB)/PDL/Demos/TriDGallery.pm',
},
);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 10 additions & 12 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ Demos/Makefile.PL
Demos/Sound.pm
Demos/t/demos.t
Demos/Transform_demo.pm
Demos/TriD/test4.p
Demos/TriD/test5.p
Demos/TriD/test7.p
Demos/TriD/testimg.p
Demos/TriD/tvrml.p
Demos/TriD/tvrml2.p
Demos/TriD1.pm
Demos/TriD2.pm
Demos/TriDGallery.pm
DEPENDENCIES
DEVELOPMENT
Doc/Doc.pm
Expand All @@ -175,9 +166,6 @@ Example/InlinePdlpp/Module/MyInlineMod.pm
Example/InlinePdlpp/Module/t/myinlinemod.t
Example/Simplex/tsimp2.pl
Example/Simplex/tsimp_needs_pgplot.pl
Example/TriD/3dtest.pl
Example/TriD/line3d.pl
Example/TriD/old_trid_clip.pl
Graphics/Graphics2D.pm
Graphics/IIS/iis.pd
Graphics/IIS/libiis.h
Expand Down Expand Up @@ -255,6 +243,16 @@ Graphics/LUT/tables/stairs9.fits
Graphics/LUT/tables/standard.fits
Graphics/Makefile.PL
Graphics/State.pm
Graphics/TriD/demos/test4.p
Graphics/TriD/demos/test5.p
Graphics/TriD/demos/test7.p
Graphics/TriD/demos/testimg.p
Graphics/TriD/demos/tvrml.p
Graphics/TriD/demos/tvrml2.p
Graphics/TriD/DemoTkTriD.pm
Graphics/TriD/DemoTriD1.pm
Graphics/TriD/DemoTriD2.pm
Graphics/TriD/DemoTriDGallery.pm
Graphics/TriD/Makefile.PL
Graphics/TriD/OpenGLQ/Makefile.PL
Graphics/TriD/OpenGLQ/openglq.pd
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ RCS
^Basic/Ufunc/Ufunc\.c
^Basic/Ufunc/Ufunc\.pm
^Basic/Ufunc/Ufunc\.xs
^Demos/TkTriD_demo.pm$
^Doc/Doc/Config.pm$
^Doc/Pod/pod2usage$
^Doc/Pod/podselect$
Expand Down

0 comments on commit 4f9b18b

Please sign in to comment.