/*
======================================================================
libpr3.c

Eric Haines
Ernie Wright  01 Jun 05

A library of primitive object output routines, part 3 of 3.  Modified
for use in a LightWave Modeler plug-in.  Most of the original routines
have been removed.  Routines dealing with NURBS output were called
only by nurbtst.c, and they look dicey to me.  I also took out the
static create_height_file() function, used to create a displacement
map in lib_output_height().  The remaining functions,

   lib_output_height()
   lib_output_torus()

are implemented as calls to polygonal versions of the functions in
libpr2.c.
====================================================================== */

#include "lib.h"


void lib_output_height( char *filename, float **data, int height, int width,
   double x0, double x1, double y0, double y1, double z0, double z1 )
{
   lib_output_polygon_height( height, width, data, x0, x1, y0, y1, z0, z1 );
}


void lib_output_torus( COORD3 center, COORD3 normal, double iradius,
   double oradius, int curve_format )
{
   lib_output_polygon_torus( center, normal, iradius, oradius );
}
