Use CurveBoundary's Default implementation

This commit is contained in:
Hanno Braun 2024-04-29 14:44:04 +02:00
parent ed769b7bd1
commit 5c55815655
2 changed files with 2 additions and 8 deletions

View File

@ -115,9 +115,7 @@ pub trait BuildHalfEdge {
surface: Handle<Surface>, surface: Handle<Surface>,
core: &mut Core, core: &mut Core,
) -> Handle<HalfEdge> { ) -> Handle<HalfEdge> {
let boundary = boundary.unwrap_or_else(|| CurveBoundary { let boundary = boundary.unwrap_or_default();
inner: [[0.], [1.]].map(Point::from),
});
let path = SurfacePath::line_from_points_with_coords( let path = SurfacePath::line_from_points_with_coords(
boundary.inner.zip_ext(points_surface), boundary.inner.zip_ext(points_surface),
); );

View File

@ -70,11 +70,7 @@ pub trait BuildShell {
.cloned() .cloned()
.unwrap_or_else(|| { .unwrap_or_else(|| {
let curve = Curve::new().insert(core); let curve = Curve::new().insert(core);
let boundary = let boundary = CurveBoundary::default();
CurveBoundary::<Point<1>>::from([
[0.],
[1.],
]);
curves.insert( curves.insert(
vertices, vertices,