My Project: openb3dlib.mod/openb3d/src/csg.h Source File

My Project

csg.h
Go to the documentation of this file.
1 #ifndef CSG_H
2 #define CSG_H
3
4 #include "mesh.h"
5 #include "surface.h"
6
7 class CSGTriangle{
8 public:
9 static list<CSGTriangle*> CSGTriangle_list;
10
11 //mesh ref.
12 Mesh* mesh;
13 Surface* surf;
14 //vertex coords
15 float x0,y0,z0,u0,v0;
16 float x1,y1,z1,u1,v1;
17 float x2,y2,z2,u2,v2;
18 //plane normal/d
19 float nx,ny,nz;
20 float onx,ony,onz;
21 float d;
22 //flags
23 int loop;
24 };
25
26 namespace CSG{
27 Mesh* MeshCSG(Mesh* m1, Mesh* m2, int method = 1);
28 }
29
30 #endif
CSGTriangle::loop
int loop
Definition: csg.h:23
Mesh
Definition: mesh.h:34
Surface
Definition: surface.h:19
CSGTriangle::ny
float ny
Definition: csg.h:19
CSG::MeshCSG
Mesh * MeshCSG(Mesh *m1, Mesh *m2, int method)
Definition: csg.cpp:914
CSGTriangle::z2
float z2
Definition: csg.h:17
CSGTriangle::ony
float ony
Definition: csg.h:20
CSGTriangle::u2
float u2
Definition: csg.h:17
mesh.h
CSGTriangle::CSGTriangle_list
static list< CSGTriangle * > CSGTriangle_list
Definition: csg.h:9
CSGTriangle::x1
float x1
Definition: csg.h:16
CSGTriangle::onz
float onz
Definition: csg.h:20
CSGTriangle::v1
float v1
Definition: csg.h:16
CSGTriangle::x0
float x0
Definition: csg.h:15
CSGTriangle::y1
float y1
Definition: csg.h:16
CSGTriangle::mesh
Mesh * mesh
Definition: csg.h:12
CSGTriangle::onx
float onx
Definition: csg.h:20
CSGTriangle::v0
float v0
Definition: csg.h:15
CSGTriangle::nx
float nx
Definition: csg.h:19
CSG
Definition: csg.cpp:4
CSGTriangle::nz
float nz
Definition: csg.h:19
CSGTriangle::u1
float u1
Definition: csg.h:16
CSGTriangle::surf
Surface * surf
Definition: csg.h:13
CSGTriangle::z1
float z1
Definition: csg.h:16
surface.h
CSGTriangle::x2
float x2
Definition: csg.h:17
CSGTriangle
Definition: csg.h:7
CSGTriangle::u0
float u0
Definition: csg.h:15
CSGTriangle::y2
float y2
Definition: csg.h:17
CSGTriangle::z0
float z0
Definition: csg.h:15
CSGTriangle::y0
float y0
Definition: csg.h:15
CSGTriangle::v2
float v2
Definition: csg.h:17
CSGTriangle::d
float d
Definition: csg.h:21