/* * MODULE NAME: segment.c * * FUNCTION: * This module contains code that draws cylinder sections. There are a * number of different segment routines presented: with and without colors, * with and without normals, with and without front and back normals. * * HISTORY: * written by Linas Vepstas August/September 1991 * split into multiple compile units, Linas, October 1991 * added normal vectors Linas, October 1991 * consoldated from other modules, Linas Vepstas, March 1993 */ #include #include #include #include /* for the memcpy() subroutine */ #include "port.h" #include "GL/tube.h" #include "extrude.h" #include "tube_gc.h" #include "segment.h" /* ============================================================ */ void draw_segment_plain (int ncp, /* number of contour points */ gleDouble front_contour[][3], gleDouble back_contour[][3], int inext, double len) { int j; /* draw the tube segment */ BGNTMESH (inext, len); for (j=0; j