mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-12 13:58:28 +00:00
Make name of struct field more general
I'm going to use it for more than just points from vertices.
This commit is contained in:
parent
9a473a152a
commit
4e3cc51d76
@ -26,7 +26,7 @@ pub fn triangulate(face: &Face) -> TriMesh {
|
||||
polygon.contains(&Coord { x, y })
|
||||
})
|
||||
.map(|triangle| {
|
||||
let points = triangle.map(|point| point.point_vertex);
|
||||
let points = triangle.map(|point| point.point_global);
|
||||
MeshTriangle {
|
||||
inner: Triangle { points },
|
||||
is_internal: face.is_internal,
|
||||
@ -63,7 +63,7 @@ fn points(face: &Face) -> Vec<TriangulationPoint> {
|
||||
|
||||
TriangulationPoint {
|
||||
point_surface,
|
||||
point_vertex: half_edge.start.point,
|
||||
point_global: half_edge.start.point,
|
||||
}
|
||||
});
|
||||
|
||||
@ -132,7 +132,7 @@ fn polygon(points: &[TriangulationPoint]) -> Polygon {
|
||||
#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd)]
|
||||
struct TriangulationPoint {
|
||||
point_surface: Point<2>,
|
||||
point_vertex: Point<3>,
|
||||
point_global: Point<3>,
|
||||
}
|
||||
|
||||
impl spade::HasPosition for TriangulationPoint {
|
||||
|
Loading…
Reference in New Issue
Block a user