mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 21:38:31 +00:00
Refactor to prepare for follow-on change
This commit is contained in:
parent
85f57a9399
commit
2160631f5a
@ -11,8 +11,9 @@ impl super::BoundingVolume<2> for &Handle<HalfEdge> {
|
|||||||
let half_edge = self;
|
let half_edge = self;
|
||||||
|
|
||||||
let half_edge = geometry.of_half_edge(half_edge);
|
let half_edge = geometry.of_half_edge(half_edge);
|
||||||
|
let path = half_edge.path;
|
||||||
|
|
||||||
match half_edge.path {
|
match path {
|
||||||
SurfacePath::Circle(circle) => {
|
SurfacePath::Circle(circle) => {
|
||||||
// Just calculate the AABB of the whole circle. This is not the
|
// Just calculate the AABB of the whole circle. This is not the
|
||||||
// most precise, but it should do for now.
|
// most precise, but it should do for now.
|
||||||
@ -27,7 +28,7 @@ impl super::BoundingVolume<2> for &Handle<HalfEdge> {
|
|||||||
}
|
}
|
||||||
SurfacePath::Line(_) => {
|
SurfacePath::Line(_) => {
|
||||||
let points = half_edge.boundary.inner.map(|point_curve| {
|
let points = half_edge.boundary.inner.map(|point_curve| {
|
||||||
half_edge.path.point_from_path_coords(point_curve)
|
path.point_from_path_coords(point_curve)
|
||||||
});
|
});
|
||||||
|
|
||||||
Some(Aabb::<2>::from_points(points))
|
Some(Aabb::<2>::from_points(points))
|
||||||
|
Loading…
Reference in New Issue
Block a user