Skip to content

Commit 9b7c243

Browse files
committed
multiplied ordered_segments to get rid of very small values
1 parent 4d8213b commit 9b7c243

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Trajectory-Hotspots-Visualization/Trajectory-Hotspots-Wrappers/drawable_trajectory.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ std::vector<Segment> drawable_trajectory::get_ordered_y_trajectory_segments() co
2525

2626
for (Segment s : ordered_segments)
2727
{
28+
s.start *= 1000;
29+
s.end *= 1000;
30+
s.start_t *= 1000;
31+
s.end_t *= 1000;
32+
33+
s.start.x = s.start_t;
34+
s.end.x = s.end_t;
35+
2836
while (y_values.contains(s.start.y))
2937
{
3038
s.start.y += 1;
@@ -33,8 +41,6 @@ std::vector<Segment> drawable_trajectory::get_ordered_y_trajectory_segments() co
3341

3442
y_values.insert(s.start.y);
3543

36-
s.start.x = s.start_t;
37-
s.end.x = s.end_t;
3844

3945
y_segments.push_back(s);
4046
prev_seg_t = &y_segments.back();

Trajectory-Hotspots-Visualization/Trajectory-Hotspots-Wrappers/drawable_trapezoidal_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void drawable_trapezoidal_map::draw(window& w) const
9393
w.draw_point(start, CGAL::black(), true);
9494

9595
query_point(left->start, w);
96-
query_point(left->start - Vec2{Float::fixed_epsilon * 10, 0}, w); //nudge the point a bit to the left
96+
query_point(left->start - Vec2{Float::fixed_epsilon * 100, 0}, w); //nudge the point a bit to the left
9797

9898
if (start.x < min.x)
9999
min.x = start.x;

0 commit comments

Comments
 (0)