diff --git a/crates/fj-kernel/src/partial/maybe_partial.rs b/crates/fj-kernel/src/partial/maybe_partial.rs index e2a968719..5b5e43988 100644 --- a/crates/fj-kernel/src/partial/maybe_partial.rs +++ b/crates/fj-kernel/src/partial/maybe_partial.rs @@ -122,6 +122,14 @@ impl MaybePartial { } } + /// Access the surface + pub fn surface(&self) -> Option> { + match self { + MaybePartial::Full(full) => Some(full.surface().clone()), + MaybePartial::Partial(partial) => partial.surface(), + } + } + /// Access the global form pub fn global_form(&self) -> Option> { match self {