CmUtils::File::Ipdata

Routines for reading and writing ipdata files.

VERSION

0.5 (12 October 2000) 0.6 (08 August 2001)

CHANGES

version 0.6 - added necessary field validity check for writing Ipdata files JMB

SUBROUTINES

readIpdata

PARAMETERS
(filename)
USAGE
  $group = readIpdata("newfile");
FUNCTION
Returns a NodeGroup read from filename (or filename.ipdata). Creates a single FieldSet relevant to an ipdata file. It has a coordinates Field with x, y and z Components, and a weights Field with the same Components.

writeIpdata

PARAMETERS
(filename, group, options)
USAGE
  writeIpdata("newfile", $group, \%options);
FUNCTION
Writes a NodeGroup to an ipdata file. Options are passed through the options hash to control the subset of the NodeGroup which will be printed.
OPTIONS
nodes
A array of node structures which will be output. A number of routines are available to get nodes from a group (e.g. getNodes. See CmUtils::Objects::NodeGroup). If not set, all nodes will be printed.
fields
An field name which will be printed. If not set, the "coordinates" field will be printed if it exists, with weights of 1.0. If two fields are specified, the second one will be written as the weights.