#25 spheres3d routine for PDL::Graphics::TriD


A PDL user requested the ability to "generate a grid of spheres and/or cubes in TriD".
A result of the perldl list discussion at
http://mailman.jach.hawaii.edu/pipermail/perldl/2010-May/005512.html ,
a rough demonstration of the desired functionality was completed by overriding
the gl_points and gdraw methods with the points3d routine.

Support for colors, varying radii, and smoother shading on the spheres
via the use of appropriate normals is needed beyond the quick demo.

The sphere.pdl quick draft (attached to this ticket)


  • Chris Marshall

    Chris Marshall - 2010-05-28

    demo spheres3d functionality with points3d

  • Chris Marshall

    Chris Marshall - 2010-06-03

    A spheres3d routine has been implemented in PDL-2.4.6_009+
    with the basic features demonstrated with sphere.pdl. The work
    for color, varying radii, and smoother shading still needs doing:

    pdldoc spheres3d
    Module PDL::Graphics::TriD
    3D spheres plot (preliminary implementation)

    spheres3d piddle(3), {OPTIONS}
    spheres3d [piddle,...], {OPTIONS}


    PDL> spheres3d ndcoords(10,10,10)->clump(1,2,3)

    - lattice of spheres at coordinates on 10x10x10 grid

    See module documentation for more information on contexts and options

  • Chris Marshall

    Chris Marshall - 2010-07-11

    It might be useful to implement a basic object3d capability
    that would take as input a routine to draw an object, a
    description of the parameters needed to describe the
    object (postion, orientation, color, xxx, yyy,...) and would
    thread over the needed parameters to image the objects
    in the scene.

    spheres3d could be implemented with a call to the
    more general routine.

  • Chris Marshall

    Chris Marshall - 2010-08-01

    Raising the priority for this request as it would be nice to finish for PDL-2.4.7

  • Chris Marshall

    Chris Marshall - 2010-08-01
    • priority: 5 --> 7
  • Chris Marshall

    Chris Marshall - 2010-08-01
    • assigned_to: nobody --> marshallch
  • Chris Marshall

    Chris Marshall - 2010-08-20

    Not as high a priority since finishing this feature did not make it into the official PDL-2.4.7 release.

  • Chris Marshall

    Chris Marshall - 2010-08-20
    • priority: 7 --> 3
  • Chris Marshall

    Chris Marshall - 2011-03-25

    Work is underway to refactor the TriD modules to enable
    a clean implementation of spheres3d (including variable
    radius values per sphere). Will not be addressed for the
    PDL-2.4.8 release.

  • Chris Marshall

    Chris Marshall - 2013-01-02

    Bumping up the priority. An update TriD graphics that would interoperate with other GUI operations would be very nice to have---at least some control over the axis labels and tic numbering!

  • Chris Marshall

    Chris Marshall - 2013-01-02
    • priority: 3 --> 5

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks