mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 05:18:26 +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>,
|
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),
|
||||||
);
|
);
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user