[comp.graphics] clipping code?

bergman@scripps.edu (Larry Bergman) (08/18/90)

I'm looking for an implementation of the Cyrus-Beck
algorithm for clipping a 3D line segment to an arbitrary
(convex) 3D polygon.  If you have code please pass
it along. I'd love to get Smalltalk code (hah!), but
C or C++ will do just fine.  (If you have another 
algorithm that does the same thing, I'm not picky).

Thanks,  Larry