Files
mips/src/jman/polys.h
T
jens 26291bca3d - initial import
git-svn-id: http://moon:8086/svn/mips@1 a8ebac50-d88d-4704-bea3-6648445a41b3
2014-07-20 15:01:37 +00:00

20 lines
580 B
C

/* Copyrighted Pixar 1989 */
/* From the RenderMan Companion p. 81 */
/* Listing 5.3 Bowling pin with normals assigned to vertices, defined using RiPointsPolygons */
#include "ri.h"
typedef struct _sPoint2D
{
RtFloat x, y;
} Point2D;
void PolyBoid(RtFloat *point0, RtFloat *point1, RtFloat *normal0, RtFloat *normal1, RtInt ndivs, RtInt parity);
void PolySurfOR(Point2D *points, RtColor *colors, RtInt npoints);
void getnextpair(float offset, RtPoint *ptrnextpair, RtFloat *point0, RtFloat *point1, RtInt ndivs);
#define NDIVS 24
#define MAXVERTS 1000