/* 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