Skip to content

Commit

Permalink
Tune parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Apr 6, 2022
1 parent b297c24 commit 1272331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AbstractSignedDistnaceFunction
public:
virtual double operator()(double x, double y) const = 0;
double getSphereTracingDist(
double x_start, double y_start, double angle, double eps = 1e-3) const;
double x_start, double y_start, double angle, double eps = 1e-2) const;
virtual ~AbstractSignedDistnaceFunction() {}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ double AbstractSignedDistnaceFunction::getSphereTracingDist(
// https://computergraphics.stackexchange.com/questions/161/what-is-ray-marching-is-sphere-tracing-the-same-thing/163
tf2::Vector3 direction(cos(angle), sin(angle), 0.0);

const size_t max_iter = 20;
const size_t max_iter = 40;

const auto pos_start = tf2::Vector3(x_start, y_start, 0.0);

Expand Down

0 comments on commit 1272331

Please sign in to comment.