mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +00:00
Use CurveBoundary
's Default
implementation
This commit is contained in:
parent
ed769b7bd1
commit
5c55815655
@ -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),
|
||||
);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user