From 7e84d72a3a86caffa90fb697ba6987a7997ad0eb Mon Sep 17 00:00:00 2001
From: Pascal Engeler <engelerp@phys.ethz.ch>
Date: Mon, 11 Oct 2021 10:42:07 +0200
Subject: [PATCH] removed extinction

---
 src/ray.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/ray.cpp b/src/ray.cpp
index 7a4df19..6be28ab 100644
--- a/src/ray.cpp
+++ b/src/ray.cpp
@@ -2,9 +2,9 @@
 
 ray::ray() {}
 
-ray::ray(const point3& origin, const vec3& direction, double amplitude, double opl, double index_of_refraction, double extinction_coeff, int phase_flips, int max_bounces)
+ray::ray(const point3& origin, const vec3& direction, double amplitude, double opl, double index_of_refraction, int phase_flips, int max_bounces)
 : orig(origin), dir(direction), amplitude(amplitude), optical_path(opl), refractive_index(index_of_refraction),
-  extinction_coeff(extinction_coeff), phase_flips(phase_flips), source(0), bounces_left(max_bounces){
+  phase_flips(phase_flips), source(0), bounces_left(max_bounces){
 
 }
 
@@ -46,7 +46,3 @@ int ray::get_source() const{
 double ray::get_amplitude() const{
   return amplitude;
 }
-
-double ray::get_amplitude_at(double t) const{
-  return amplitude*std::exp(-12600.*extinction_coeff*(at(t) - orig).length());
-}
-- 
GitLab