#include <yafray_config.h>#include <core_api/bound.h>#include <string.h>#include <stdio.h>#include <algorithm>#include <iostream>
Go to the source code of this file.
Classes | |
| class | DVector |
| struct | clipDump |
Defines | |
| #define | Y_VCPY(a, b) ( (a)[0] =(b)[0], (a)[1] =(b)[1], (a)[2] =(b)[2] ) |
Functions | |
| template<class T > | |
| __BEGIN_YAFRAY void | _swap (T **a, T **b) |
| int | triBoxClip (const double b_min[3], const double b_max[3], const double triverts[3][3], bound_t &box, void *n_dat) |
| int | triPlaneClip (double pos, int axis, bool lower, bound_t &box, void *o_dat, void *n_dat) |
| #define Y_VCPY | ( | a, | |||
| b | ) | ( (a)[0] =(b)[0], (a)[1] =(b)[1], (a)[2] =(b)[2] ) |
Definition at line 52 of file triclip.cc.
| __BEGIN_YAFRAY void _swap | ( | T ** | a, | |
| T ** | b | |||
| ) | [inline] |
Definition at line 25 of file triclip.cc.
| int triBoxClip | ( | const double | b_min[3], | |
| const double | b_max[3], | |||
| const double | triverts[3][3], | |||
| bound_t & | box, | |||
| void * | n_dat | |||
| ) |
function to clip a triangle against an axis aligned bounding box and return new bound
| box | the AABB of the clipped triangle |
Definition at line 62 of file triclip.cc.
| int triPlaneClip | ( | double | pos, | |
| int | axis, | |||
| bool | lower, | |||
| bound_t & | box, | |||
| void * | o_dat, | |||
| void * | n_dat | |||
| ) |
Definition at line 245 of file triclip.cc.
1.6.1