The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

PDL::Graphics::TriD::Rout - Helper routines for Three-dimensional graphics

DESCRIPTION

This module is for miscellaneous PP-defined utility routines for the PDL::Graphics::TriD module. Currently, there are #line 39 "Rout.pm"

FUNCTIONS

combcoords

  Signature: (x(); y(); z();
                float [o]coords(tri=3);)

Combine three coordinates into a single ndarray.

Combine x, y and z to a single ndarray the first dimension of which is 3. This routine does dataflow automatically.

combcoords does not process bad values. It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.

repulse

  Signature: (coords(nc,np);
                 [o]vecs(nc,np);
                 int [t]links(np);; 
                double boxsize;
                int dmult;
                double a;
                double b;
                double c;
                double d;
        )

Repulsive potential for molecule-like constructs.

repulse uses a hash table of cubes to quickly calculate a repulsive force that vanishes at infinity for many objects. For use by the module PDL::Graphics::TriD::MathGraph. For definition of the potential, see the actual function.

repulse does not process bad values. It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.

attract

  Signature: (coords(nc,np);
                int from(nl);
                int to(nl);
                strength(nl);
                [o]vecs(nc,np);; 
                double m;
                double ms;
        )

Attractive potential for molecule-like constructs.

attract is used to calculate an attractive force for many objects, of which some attract each other (in a way like molecular bonds). For use by the module PDL::Graphics::TriD::MathGraph. For definition of the potential, see the actual function.

attract does not process bad values. It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.

vrmlcoordsvert

  Signature: (vertices(n=3); char* space; PerlIO *fp)

info not available

vrmlcoordsvert does not process bad values. It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays.

AUTHOR

Copyright (C) 2000 James P. Edwards Copyright (C) 1997 Tuomas J. Lukka. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file.