mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-25 16:45:52 +00:00
Simplify function argument
This commit is contained in:
parent
add9c4f0ef
commit
d275c676bc
@ -57,7 +57,7 @@ pub fn triangulate(
|
||||
let mut triangles = delaunay(points);
|
||||
triangles.retain(|triangle| {
|
||||
face_as_polygon.contains_triangle(
|
||||
&triangle.map(|point| point.native()),
|
||||
triangle.map(|point| point.native()),
|
||||
debug_info,
|
||||
)
|
||||
});
|
||||
|
@ -61,7 +61,7 @@ impl Polygon {
|
||||
|
||||
pub fn contains_triangle(
|
||||
&self,
|
||||
&[a, b, c]: &[Point<2>; 3],
|
||||
[a, b, c]: [Point<2>; 3],
|
||||
debug_info: &mut DebugInfo,
|
||||
) -> bool {
|
||||
for edge in [a, b, c, a].windows(2) {
|
||||
|
Loading…
Reference in New Issue
Block a user