NORMALPATCH

Section: C Library Functions (3V)
Updated: 14 July 1991
Index Return to Main Contents
 

NAME

NormalPatch - Given a patch and u/v parameters, returns the normal  

SYNOPSIS

#include <patch.h>

Isectrec NormalPatch(p, u, v)
PatchPtr p;                      
float u, v;
 

DESCRIPTION

Given a patch pointer and the u/v parameters,, NormalPatch() calculates the surface normal. The patch pointer p is typically obtained by a call to NewPatch(3V) and the patch defined with DefPatch(3V). The u/v parameters are usually obtained by calling IsectPatch().  

RETURN VALUE

A VECTOR record is returned. Like PatchPtr, VECTOR is defined in patch.h. Upon return, the vector will contain the normalized surface normal.  

SEE ALSO

NewPatch(3V), DefPatch(3V), IsectPatch(3V), FreePatch(3V)  

REFERENCE

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.  

AUTHOR

Sean Graves


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
REFERENCE
AUTHOR

This document was created by man2html, using the manual pages.
Time: 23:51:33 GMT, February 10, 2023