home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
spline-patch.tar.gz
/
spline-patch.tar
/
patch
/
README
< prev
next >
Wrap
Text File
|
1991-11-18
|
2KB
|
38 lines
Contents -
A set of routines for creating and raytracing bicubic surface
patches. These routines can work with any bicubic patch such as a bezier,
b-spline, cardinal, beta-spline, etc. They are based on a paper by:
Levner G, Tassinari P, Marini D (1987) A simple method for ray tracing bicubic
surfaces. In: Kunii TL (ed) "Theoretical Foundations of Computer Graphics and
CAD", 1987, Springer, Tokyo, pp 805-814.
User Routines:
NewPatch - Allocates the patch data structures and returns a pointer.
DefPatch - Defines a patch, given a patch pointer.
IsectPatch - Intersects a ray and a patch. Returns u, v, t, pnt.
NormalPatch - Given a patch and a u, v position, returns the normal.
FreePatch - Deallocates a patch.
Additionally, there is one useful routine not specific to patches:
BoxIntersect - Given a ray and a box, returns the intersection point.
The file patch.h contains function prototypes for the routines.
The demos/ directory contains some demo programs that illustrate the use
of the routines. These programs are intended to be run on a Silicon
Graphics IRIS. The makefile in this directory may also be instructive.
The man/ directory contains troff man pages for all routines.
-----------
Copyright (c) 1990, by Sean Graves and Texas A&M University
Permission is hereby granted for non-commercial reproduction and use of
this program, provided that this notice is included in any material copied
from it. The author assumes no responsibility for damages resulting from
the use of this software, however caused.