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

Go to the source code of this file.


struct rt_nurb_poly * rt_nurb_to_poly (struct face_g_snurb *srf)
struct rt_nurb_poly * rt_nurb_mk_poly (fastf_t *v1, fastf_t *v2, fastf_t *v3, fastf_t *uv1, fastf_t *uv2, fastf_t *uv3)

Detailed Description

Convert old NURBS to new NURBS

Returns two polygons from a NURB surface. Assumes that the surface is flat.

Definition in file nurb_poly.c.

Function Documentation

struct rt_nurb_poly* rt_nurb_to_poly ( struct face_g_snurb *  srf)

Algorithm -

From the four corners of the surface, return the two parts split by the diagonal from the first and third corner point making sure Homogeneous points are divided.

Definition at line 47 of file nurb_poly.c.

References rt_nurb_mk_poly().

Here is the call graph for this function:

struct rt_nurb_poly* rt_nurb_mk_poly ( fastf_t v1,
fastf_t v2,
fastf_t v3,
fastf_t uv1,
fastf_t uv2,
fastf_t uv3 

Definition at line 106 of file nurb_poly.c.

References BU_ALLOC.

Referenced by rt_nurb_to_poly().