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>,
core: &mut Core,
) -> Handle<HalfEdge> {
let boundary = boundary.unwrap_or_else(|| CurveBoundary {
inner: [[0.], [1.]].map(Point::from),
});
let boundary = boundary.unwrap_or_default();
let path = SurfacePath::line_from_points_with_coords(
boundary.inner.zip_ext(points_surface),
);

View File

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