mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-11 09:45:53 +00:00
Return updated path from HalfEdgeBuilder
method
This commit is contained in:
parent
2559043862
commit
ea5704cebe
@ -25,7 +25,10 @@ pub trait HalfEdgeBuilder {
|
|||||||
fn update_as_v_axis(&mut self) -> SurfacePath;
|
fn update_as_v_axis(&mut self) -> SurfacePath;
|
||||||
|
|
||||||
/// Update partial half-edge to be a circle, from the given radius
|
/// Update partial half-edge to be a circle, from the given radius
|
||||||
fn update_as_circle_from_radius(&mut self, radius: impl Into<Scalar>);
|
fn update_as_circle_from_radius(
|
||||||
|
&mut self,
|
||||||
|
radius: impl Into<Scalar>,
|
||||||
|
) -> SurfacePath;
|
||||||
|
|
||||||
/// Update partial half-edge to be an arc, spanning the given angle in
|
/// Update partial half-edge to be an arc, spanning the given angle in
|
||||||
/// radians
|
/// radians
|
||||||
@ -85,7 +88,10 @@ impl HalfEdgeBuilder for PartialHalfEdge {
|
|||||||
path
|
path
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_as_circle_from_radius(&mut self, radius: impl Into<Scalar>) {
|
fn update_as_circle_from_radius(
|
||||||
|
&mut self,
|
||||||
|
radius: impl Into<Scalar>,
|
||||||
|
) -> SurfacePath {
|
||||||
let path = self.curve.write().update_as_circle_from_radius(radius);
|
let path = self.curve.write().update_as_circle_from_radius(radius);
|
||||||
|
|
||||||
let [a_curve, b_curve] =
|
let [a_curve, b_curve] =
|
||||||
@ -107,6 +113,8 @@ impl HalfEdgeBuilder for PartialHalfEdge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.infer_global_form();
|
self.infer_global_form();
|
||||||
|
|
||||||
|
path
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_as_arc(&mut self, angle_rad: impl Into<Scalar>) {
|
fn update_as_arc(&mut self, angle_rad: impl Into<Scalar>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user