The object format is determined by the extension of the file name.

Supported formats include:

- Silicon Graphics Open Inventor
*(.iv)* - Wavefront OBJ
*(.obj)* - AutoCAD DXF
*(.dxf)* - AutoDesk 3DStudio
*(.3ds)* - movie.byu
*(.byu)* - Coryphaeus Designer's Workbench
*(.dwb)* - MultiGen OpenFlight
*(.flt)* - Medit Productions MEDIT
*(.medit)* - Performer Fast Binary
*(.pfb)*[2.0.2 and later]

*pfFilePath(path)* defines a search path for the loaders to use
when looking for data files. *path* is a list of directories similar
to the PATH environment variable. e.g.:

pfe, scale), for adding transformations to existing matrices, and for inverting matrices.## Quaternions

Class: pfQuat (subclass of pfVec4)pfQuat includes methods for mathematical operations on quaternions, and for interpolating quaternions.

pfMatrix::makeQuat(q)builds a matrix for the rotation defined by the quaternion q.## Bounding volumes

Classes: pfSphere, pfCylinder, pfBox

pfNode::getBound(&sphere)returns the bounding sphere for a node (including its children).The

contains(v)method tests whether a point is inside a bounding volume.## Fast math

Macro versions of most of the vector and matrix operations are also available.Performer's trigonometric functions provide faster, although less accurate, versions of the standard math library functions:

- pfSinCos()
- pfTan()
- pfArcTan2()
- pfArcSin()
- pfArcCos()
- pfSqrt()

Previous page Next page

Last modified 21 July 1997.

Dave Pape, pape@evl.uic.edu