Compare commits

...

2 commits

Author SHA1 Message Date
Ruben van de Ven
e0b81abd33 homography point pincushion on alignment 2025-10-16 18:30:47 +02:00
Ruben van de Ven
d06a28051b change test shape intensity (now depends on dimming only) 2025-10-16 18:05:23 +02:00
2 changed files with 5 additions and 5 deletions

View file

@ -310,7 +310,7 @@ impl HomographyFilter {
}).flatten().collect(); }).flatten().collect();
LaserPoints{ LaserPoints{
points: cursor_points, points: cursor_points,
space: CoordinateSpace::RawLaser, // don't run these through filters anymore space: CoordinateSpace::Laser, // still need to be pincushioned
} }
} }
} }

View file

@ -180,28 +180,28 @@ pub fn shape_rect(space: LaserSpace, steps: usize) -> LaserPoints {
for i in (0..=steps).rev() { for i in (0..=steps).rev() {
points.push(laser::Point{ points.push(laser::Point{
position:[0xFFF as f32 * factor - offset, (0xFFF * i / steps) as f32 * factor - offset], 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, weight: 0,
}); });
} }
for i in (0..steps).rev() { for i in (0..steps).rev() {
points.push(laser::Point{ points.push(laser::Point{
position:[(0xFFF * i / steps) as f32 * factor - offset, 0.0 * factor - offset], 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, weight: 0,
}); });
} }
for i in 0..steps { for i in 0..steps {
points.push(laser::Point{ points.push(laser::Point{
position:[0.0 * factor - offset, (0xFFF * i / steps) as f32 * factor - offset], 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, weight: 0,
}); });
} }
for i in 0..=steps { for i in 0..=steps {
points.push(laser::Point{ points.push(laser::Point{
position:[(0xFFF * i / steps) as f32 * factor - offset , 0xFFF as f32 * factor - offset], 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, weight: 0,
}); });
} }