mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-04 08:26:32 +00:00
Simplify
This commit is contained in:
parent
f60e50c8ed
commit
34cdfd2540
@ -65,7 +65,7 @@ impl SurfaceGeom {
|
|||||||
) -> (Triangle<3>, [Scalar; 3]) {
|
) -> (Triangle<3>, [Scalar; 3]) {
|
||||||
let point_surface = point_surface.into();
|
let point_surface = point_surface.into();
|
||||||
|
|
||||||
let [a, b] = match &self.u {
|
let line_segment = match &self.u {
|
||||||
Path::Circle(circle) => {
|
Path::Circle(circle) => {
|
||||||
let params = PathApproxParams::for_circle(circle, tolerance);
|
let params = PathApproxParams::for_circle(circle, tolerance);
|
||||||
|
|
||||||
@ -87,8 +87,8 @@ impl SurfaceGeom {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let [a, b] =
|
let [a, b] = line_segment
|
||||||
[a, b].map(|point_global| point_global + self.v * point_surface.v);
|
.map(|point_global| point_global + self.v * point_surface.v);
|
||||||
|
|
||||||
let c = a + (b - a) / 2.;
|
let c = a + (b - a) / 2.;
|
||||||
let triangle = Triangle::from([a, b, c]);
|
let triangle = Triangle::from([a, b, c]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user