mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-09 02:36:07 +00:00
Refactor to simplify
This commit is contained in:
parent
c5cfff03cf
commit
61a30933ed
@ -4,7 +4,7 @@ use fj_math::{Arc, Point, Scalar};
|
|||||||
use crate::{
|
use crate::{
|
||||||
geometry::{CurveBoundary, HalfEdgeGeometry, SurfacePath},
|
geometry::{CurveBoundary, HalfEdgeGeometry, SurfacePath},
|
||||||
objects::{Curve, HalfEdge, Vertex},
|
objects::{Curve, HalfEdge, Vertex},
|
||||||
operations::insert::Insert,
|
operations::{geometry::UpdateHalfEdgeGeometry, insert::Insert},
|
||||||
storage::Handle,
|
storage::Handle,
|
||||||
Core,
|
Core,
|
||||||
};
|
};
|
||||||
@ -112,12 +112,9 @@ pub trait BuildHalfEdge {
|
|||||||
boundary.zip_ext(points_surface),
|
boundary.zip_ext(points_surface),
|
||||||
);
|
);
|
||||||
|
|
||||||
let half_edge = HalfEdge::unjoined(path, boundary, core).insert(core);
|
HalfEdge::unjoined(path, boundary, core)
|
||||||
core.layers
|
.insert(core)
|
||||||
.geometry
|
.set_path(path, &mut core.layers.geometry)
|
||||||
.define_half_edge(half_edge.clone(), HalfEdgeGeometry { path });
|
|
||||||
|
|
||||||
half_edge
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user