mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +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>,
|
||||
}
|
||||
|
||||
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
|
||||
#[derive(Clone)]
|
||||
pub struct LocalCurveGeom {
|
||||
|
Loading…
Reference in New Issue
Block a user