vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
vrecko
Vrecko - the Virtual Reality Engine
Dynamic Art module
L-system plant modeler - module for Vrecko
Head Up Display module
Space Partitioning - module for Vrecko
Todo List
Deprecated List
Namespaces
Classes
Files
File List
include
base
helpers
vrecko
vreckoAP
ArtificialWorld
behindO
Boids
CableEditor
CameraMovement
CameraPath
CarSim
ConnectEditor
ConstrainedMovement
DynamicArt
EditorController
EditorQAbilities
FFDEditor
Filter
games
Garden
GUI
HeadTracking
HelloWorld
HUD
InputConnector
LightsEditor
Menu
Nature
navigation
ObjectUtils
ODE
RoomEdit
ShootingSimulation
SpacePartitioning
AP_SpacePartitioning.h
GeometryLoaderBase.h
NoPartitioning_Scene.h
PointShell_Object_Data.h
PointShell_Object_Data_Geometry.h
PointShell_Object_Data_Geometry_Analyser.h
PointShell_Object_Data_LOD_Builder.h
PointShellVSVoxel_Object.h
SNCH_Object.h
SNCH_Object_Data.h
SP_Object_Data_Base.h
SphereBVH_Object.h
SphereBVH_Object_Data.h
SphereBVH_Scene.h
triangleCube.h
VoxelGrid_Object_Data.h
TextOutput
vreckoDP
vreckoUtils
src
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
triangleCube.h
Go to the documentation of this file.
1
/*
2
* This class is taken from somewhere in the web and changes has been made to make it work for our purposes.
3
*/
4
5
//#include "precompiled.h"
6
#include <
math.h
>
7
8
typedef
struct
{
9
float
x
;
10
float
y
;
11
float
z
;
12
}
Point3
;
13
14
typedef
struct
{
15
Point3
v1
;
/* Vertex1 */
16
Point3
v2
;
/* Vertex2 */
17
Point3
v3
;
/* Vertex3 */
18
}
Triangle3
;
19
20
long
face_plane
(
Point3
p);
21
long
bevel_2d
(
Point3
p);
22
long
bevel_3d
(
Point3
p);
23
long
check_point
(
Point3
p1,
Point3
p2,
float
alpha,
long
mask);
24
long
check_line
(
Point3
p1,
Point3
p2,
long
outcode_diff);
25
long
point_triangle_intersection
(
Point3
p,
Triangle3
t);
26
long
t_c_intersection
(
Triangle3
t);
include
vreckoAP
SpacePartitioning
triangleCube.h
Generated on Tue Feb 19 2013 10:23:45 for vrecko by
1.8.3.1