mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-15 11:45:54 +00:00
Merge pull request #2147 from hannobraun/cleanup
Make some minor clean-ups in `fj-core`
This commit is contained in:
commit
cf77d924ea
@ -1,7 +1,7 @@
|
||||
pub mod curve;
|
||||
pub mod cycle;
|
||||
pub mod edge;
|
||||
pub mod face;
|
||||
pub mod half_edge;
|
||||
pub mod region;
|
||||
pub mod shell;
|
||||
pub mod sketch;
|
||||
|
@ -48,8 +48,8 @@ pub use self::{
|
||||
kinds::{
|
||||
curve::Curve,
|
||||
cycle::Cycle,
|
||||
edge::HalfEdge,
|
||||
face::{Face, Handedness},
|
||||
half_edge::HalfEdge,
|
||||
region::Region,
|
||||
shell::Shell,
|
||||
sketch::Sketch,
|
||||
|
@ -9,7 +9,7 @@ pub trait UpdateCycle {
|
||||
#[must_use]
|
||||
fn add_half_edges(
|
||||
&self,
|
||||
edges: impl IntoIterator<Item = Handle<HalfEdge>>,
|
||||
half_edges: impl IntoIterator<Item = Handle<HalfEdge>>,
|
||||
) -> Self;
|
||||
|
||||
/// Update an edge of the cycle
|
||||
@ -47,10 +47,10 @@ pub trait UpdateCycle {
|
||||
impl UpdateCycle for Cycle {
|
||||
fn add_half_edges(
|
||||
&self,
|
||||
edges: impl IntoIterator<Item = Handle<HalfEdge>>,
|
||||
half_edges: impl IntoIterator<Item = Handle<HalfEdge>>,
|
||||
) -> Self {
|
||||
let edges = self.half_edges().iter().cloned().chain(edges);
|
||||
Cycle::new(edges)
|
||||
let half_edges = self.half_edges().iter().cloned().chain(half_edges);
|
||||
Cycle::new(half_edges)
|
||||
}
|
||||
|
||||
fn update_half_edge(
|
||||
|
Loading…
Reference in New Issue
Block a user