Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-08-22 21:09:25 +02:00
parent 984ee93df9
commit 7808b55583

View File

@ -71,11 +71,9 @@ impl SurfaceGeom {
let a = point_surface.u - params.increment();
let b = point_surface.u + params.increment();
let c = point_surface.u; // triangle is degenerate, as per docs
let triangle_points_in_circle_space = [a, b, c];
let triangle_points_in_global_space =
triangle_points_in_circle_space
let triangle_points_in_circle_space = [a, b];
let [a, b] = triangle_points_in_circle_space
.map(|point_circle| {
circle.point_from_circle_coords([point_circle])
})
@ -83,7 +81,8 @@ impl SurfaceGeom {
point_global + self.v * point_surface.v
});
Triangle::from(triangle_points_in_global_space)
let c = a + (b - a) / 2.;
Triangle::from([a, b, c])
}
Path::Line(line) => {
// We don't need to approximate a line. So instead of creating a