Go to the documentation of this file.
59 # include <OpenGL/gl.h>
66 class Feedback3DColor ;
69 #define EPS_SMOOTH_LINE_FACTOR 0.06
78 :
_pos(loc[0],loc[1],loc[2]),
84 inline GLfloat
red()
const {
return _red ; }
86 inline GLfloat
blue()
const {
return _blue ; }
88 inline const Vector3&
pos()
const {
return _pos ; }
132 Vect3 VerticalProjectPointOnSupportPlane(
const Vector3 &)
const ;
133 void IntersectPrimitiveWithSupportPlane(
Primitive *,
int[],
FLOAT[],Vect3 *&,Vect3 *&) ;
134 inline FLOAT Equation(
const Vect3& p) {
return p*_normal-_C ; }
137 FLOAT Const()
const {
return _C ; }
139 int depth()
const {
return _depth ; }
140 void setDepth(
int d)
const { _depth = d ; }
156 virtual const Vector3&
vertex(
size_t)
const ;
157 virtual size_t nbVertices()
const {
return 1 ; }
165 class Segment:
public Primitive
187 Polygone(
const std::vector<Feedback3DColor>&) ;
190 virtual int IsAPolygon() {
return 1 ; }
192 void InitEquation(
double &,
double &,
double &,
double &) ;
198 double equation(
const Vector3& p)
const ;
200 double c()
const {
return _c ; }
virtual void initNormal()
virtual AxisAlignedBox_xyz bbox() const
virtual const Vector3 & vertex(size_t) const
Point(const Feedback3DColor &f)
virtual size_t nbVertices() const
virtual const Feedback3DColor & sommet3DColor(size_t) const
static size_t sizeInBuffer()
double equation(const Vector3 &p) const
virtual size_t nbVertices() const
const Vector3 & pos() const
void CheckInfoForPositionOperators()
virtual const Vector3 & vertex(size_t) const =0
virtual size_t nbVertices() const
virtual AxisAlignedBox_xyz bbox() const
Feedback3DColor operator*(const GLFLOAT &f) const
virtual const Vector3 & vertex(size_t) const
const NVector3 & normal() const
virtual AxisAlignedBox_xyz bbox() const
Segment(const Feedback3DColor &p1, const Feedback3DColor &p2)
AxisAlignedBox< Vector3 > AxisAlignedBox_xyz
virtual const Feedback3DColor & sommet3DColor(size_t) const
virtual AxisAlignedBox_xyz bbox() const =0
Feedback3DColor _position_and_color
virtual size_t nbVertices() const =0
virtual const Feedback3DColor & sommet3DColor(size_t i) const
Feedback3DColor operator+(const Feedback3DColor &v) const
virtual const Vector3 & vertex(size_t) const
Feedback3DColor(GLfloat *loc)
virtual const Feedback3DColor & sommet3DColor(size_t) const =0
Polygone(const std::vector< Feedback3DColor > &)
friend std::ostream & operator<<(std::ostream &, const Feedback3DColor &)
std::vector< Feedback3DColor > _vertices
octovis
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Thu Apr 3 2025 02:40:44