Compare commits
2 commits
1361447d0f
...
e0b81abd33
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e0b81abd33 | ||
![]() |
d06a28051b |
2 changed files with 5 additions and 5 deletions
|
@ -310,7 +310,7 @@ impl HomographyFilter {
|
|||
}).flatten().collect();
|
||||
LaserPoints{
|
||||
points: cursor_points,
|
||||
space: CoordinateSpace::RawLaser, // don't run these through filters anymore
|
||||
space: CoordinateSpace::Laser, // still need to be pincushioned
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,28 +180,28 @@ pub fn shape_rect(space: LaserSpace, steps: usize) -> LaserPoints {
|
|||
for i in (0..=steps).rev() {
|
||||
points.push(laser::Point{
|
||||
position:[0xFFF as f32 * factor - offset, (0xFFF * i / steps) as f32 * factor - offset],
|
||||
color: [0.2,0.2,0.2],
|
||||
color: [1.0,1.0,1.0],
|
||||
weight: 0,
|
||||
});
|
||||
}
|
||||
for i in (0..steps).rev() {
|
||||
points.push(laser::Point{
|
||||
position:[(0xFFF * i / steps) as f32 * factor - offset, 0.0 * factor - offset],
|
||||
color: [0.2,0.2,0.2],
|
||||
color: [1.0,1.0,1.0],
|
||||
weight: 0,
|
||||
});
|
||||
}
|
||||
for i in 0..steps {
|
||||
points.push(laser::Point{
|
||||
position:[0.0 * factor - offset, (0xFFF * i / steps) as f32 * factor - offset],
|
||||
color: [0.2,0.2,0.2],
|
||||
color: [1.0,1.0,1.0],
|
||||
weight: 0,
|
||||
});
|
||||
}
|
||||
for i in 0..=steps {
|
||||
points.push(laser::Point{
|
||||
position:[(0xFFF * i / steps) as f32 * factor - offset , 0xFFF as f32 * factor - offset],
|
||||
color: [0.2,0.2,0.2],
|
||||
color: [1.0,1.0,1.0],
|
||||
weight: 0,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue