mirror of https://github.com/hannobraun/Fornjot
Add `MaybePartial<Curve>::surface`
This commit is contained in:
parent
5fec6dec06
commit
f3ef0042c2
|
@ -122,6 +122,14 @@ impl MaybePartial<Curve> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Access the surface
|
||||
pub fn surface(&self) -> Option<Handle<Surface>> {
|
||||
match self {
|
||||
MaybePartial::Full(full) => Some(full.surface().clone()),
|
||||
MaybePartial::Partial(partial) => partial.surface(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Access the global form
|
||||
pub fn global_form(&self) -> Option<MaybePartial<GlobalCurve>> {
|
||||
match self {
|
||||
|
|
Loading…
Reference in New Issue