KiCad PCB EDA Suite
ctriangle.cpp File Reference

Implements a triangle ray intersection based on article: http://www.flipcode.com/archives/Raytracing_Topics_Techniques-Part_7_Kd-Trees_and_More_Speed.shtml by Jacco Bikker, that implement optimizations based on Ingo Wald's thesis. More...

#include "ctriangle.h"

Go to the source code of this file.

Macros

#define ku   s_modulo[m_k + 1]
 
#define kv   s_modulo[m_k + 2]
 
#define ku   s_modulo[m_k + 1]
 
#define kv   s_modulo[m_k + 2]
 

Variables

static const unsigned int s_modulo [] = { 0, 1, 2, 0, 1 }
 

Detailed Description

Implements a triangle ray intersection based on article: http://www.flipcode.com/archives/Raytracing_Topics_Techniques-Part_7_Kd-Trees_and_More_Speed.shtml by Jacco Bikker, that implement optimizations based on Ingo Wald's thesis.

Definition in file ctriangle.cpp.

Macro Definition Documentation

#define ku   s_modulo[m_k + 1]
#define ku   s_modulo[m_k + 1]
#define kv   s_modulo[m_k + 2]
#define kv   s_modulo[m_k + 2]

Variable Documentation

const unsigned int s_modulo[] = { 0, 1, 2, 0, 1 }
static

Definition at line 215 of file ctriangle.cpp.