Refactor to simplify

This commit is contained in:
Hanno Braun 2024-03-22 16:33:50 +01:00
parent c5cfff03cf
commit 61a30933ed

View File

@ -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
} }
} }