1#ifndef TRIANGLE_INCLUDED
2#define TRIANGLE_INCLUDED
41 static std::string
Directive(
void ){
return "shape_triangle"; }
50 void _write( std::ostream &stream )
const;
51 void _read( std::istream &stream );
53 std::string
name(
void )
const {
return "triangle"; }
Definition: GLSLProgram.h:33
std::function< bool(double) > RayIntersectionFilter
Definition: shape.h:163
std::function< void(const ShapeProcessingInfo &, const class RayShapeIntersectionInfo &) > RayIntersectionKernel
Definition: shape.h:164
Definition: triangle.h:32
bool processFirstIntersection(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: triangle.todo.cpp:48
void updateBoundingBox(void)
Definition: triangle.todo.cpp:29
void addTrianglesOpenGL(std::vector< TriangleIndex > &triangles)
Definition: triangle.cpp:26
void _write(std::ostream &stream) const
Definition: triangle.cpp:18
size_t _vIndices[3]
Definition: triangle.h:34
void init(const class LocalSceneData &data)
Definition: triangle.todo.cpp:12
void drawOpenGL(GLSLProgram *glslProgram) const
Definition: triangle.todo.cpp:59
const class Vertex * _v[3]
Definition: triangle.h:37
void initOpenGL(void)
Definition: triangle.todo.cpp:37
Triangle(void)
Definition: triangle.cpp:11
int processAllIntersections(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: triangle.cpp:31
static std::string Directive(void)
Definition: triangle.h:41
std::string name(void) const
Definition: triangle.h:53
void _read(std::istream &stream)
Definition: triangle.cpp:13
bool isInside(Util::Point3D p) const
Definition: triangle.cpp:24
Definition: triangle.h:12
GLuint _indices[3]
Definition: triangle.h:14
GLuint & operator[](int idx)
Definition: triangle.h:24
TriangleIndex(void)
Definition: triangle.h:18
TriangleIndex(unsigned int i0, unsigned int i1, unsigned int i2)
Definition: triangle.h:21
Definition: geometry.h:345
Definition: geometry.h:299