mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-15 14:36:06 +00:00
Add CurveGeom::from_path_and_surface
This commit is contained in:
parent
3c3d53bfe6
commit
b884e5f081
@ -25,6 +25,18 @@ pub struct CurveGeom {
|
|||||||
pub definitions: Vec<LocalCurveGeom>,
|
pub definitions: Vec<LocalCurveGeom>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl CurveGeom {
|
||||||
|
/// Create a new instance of `CurveGeom` from a path and a surface
|
||||||
|
pub fn from_path_and_surface(
|
||||||
|
path: SurfacePath,
|
||||||
|
surface: Handle<Surface>,
|
||||||
|
) -> Self {
|
||||||
|
Self {
|
||||||
|
definitions: vec![LocalCurveGeom { path, surface }],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// The geometric definition of a curve in 2D surface coordinates
|
/// The geometric definition of a curve in 2D surface coordinates
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct LocalCurveGeom {
|
pub struct LocalCurveGeom {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user