30 :
Event(position, incomingDirection, _shape)
Event that is only a point in a ray path with no direction change.
DoNothing(const DoNothing &other)
virtual bool isAcceptableResponse(vec3 &test)
Return true if the ray direction vector in response of the event is acceptable.
virtual ~DoNothing()
Destructor.
DoNothing(const vec3 &position=vec3(0.0, 0.0, 0.0), const vec3 &incomingDirection=vec3(0.0, 0.0, 0.0), Shape *_shape=NULL)
Constructors.
virtual bool getResponse(vec3 &r, bool force=false)
Return a direction vector for the impact. Ray direction vector in response of the event.
Class describing an event (reflection, diffraction, ...)
int nbResponseLeft
Number of remaining rays to launch.
vec3 from
Direction vector of the incoming ray.
int initialNbResponse
Number of rays to launch after event.
typeevent type
Event type.
base class for shapes (Cylindre, Mesh, Sphere, Triangle,...)
base_vec3< decimal > vec3