mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-30 20:05:55 +00:00
Fix SurfaceVertex
duplication
This commit is contained in:
parent
fab693863d
commit
9279d78a4e
@ -96,11 +96,16 @@ impl PartialHalfEdge {
|
|||||||
let global_form = Handle::<GlobalVertex>::partial()
|
let global_form = Handle::<GlobalVertex>::partial()
|
||||||
.from_curve_and_position(curve.clone(), a_curve);
|
.from_curve_and_position(curve.clone(), a_curve);
|
||||||
|
|
||||||
|
let path = curve.path.expect("Expected path that was just created");
|
||||||
|
let surface_form = SurfaceVertex::partial()
|
||||||
|
.with_position(Some(path.point_from_path_coords(a_curve)))
|
||||||
|
.with_global_form(Some(global_form));
|
||||||
|
|
||||||
[a_curve, b_curve].map(|point_curve| {
|
[a_curve, b_curve].map(|point_curve| {
|
||||||
Vertex::partial()
|
Vertex::partial()
|
||||||
.with_position(Some(point_curve))
|
.with_position(Some(point_curve))
|
||||||
.with_curve(Some(curve.clone()))
|
.with_curve(Some(curve.clone()))
|
||||||
.with_global_form(Some(global_form.clone()))
|
.with_surface_form(Some(surface_form.clone()))
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user