nurb_norm.c File Reference
#include "common.h"
#include "bio.h"
#include "vmath.h"
#include "raytrace.h"
#include "nurb.h"
Include dependency graph for nurb_norm.c:

Go to the source code of this file.


void rt_nurb_s_norm (struct face_g_snurb *srf, fastf_t u, fastf_t v, fastf_t *norm)

Detailed Description

Calculate and return the normal of a surface given the U, V parametric values.

Definition in file nurb_norm.c.

Function Documentation

void rt_nurb_s_norm ( struct face_g_snurb *  srf,
fastf_t  u,
fastf_t  v,
fastf_t norm 

If the order of the surface is linear either direction than approximate it.

Definition at line 44 of file nurb_norm.c.

References rt_nurb_free_snurb(), rt_nurb_s_diff(), rt_nurb_s_eval(), and ZERO.

Referenced by isect_ray_snurb_face(), nmg_snurb_fu_get_norm(), and rt_nurb_norm().

Here is the call graph for this function: