mirror of https://github.com/hannobraun/Fornjot
Add `MaybePartial<SurfaceVertex>::global_form`
This commit is contained in:
parent
41b32978b7
commit
5b0b4237cc
|
@ -224,6 +224,14 @@ impl MaybePartial<SurfaceVertex> {
|
||||||
Self::Partial(partial) => partial.surface(),
|
Self::Partial(partial) => partial.surface(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Access the global form
|
||||||
|
pub fn global_form(&self) -> MaybePartial<GlobalVertex> {
|
||||||
|
match self {
|
||||||
|
Self::Full(full) => full.global_form().clone().into(),
|
||||||
|
Self::Partial(partial) => partial.global_form(),
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MaybePartial<Vertex> {
|
impl MaybePartial<Vertex> {
|
||||||
|
|
Loading…
Reference in New Issue