Gets whether stencil-based caps are currently applied —
true iff View.renderMode is in
SectionPlaneCaps.renderModes.
The renderer additionally gates per-frame on whether any active SectionPlane carries a SectionPlane.capColor; this getter only reports the View-mode side of that gate.
Gets the render modes that run the stencil cap pass.
Sets which render modes run the stencil cap pass.
Default [] — caps are off until the caller opts in.
[DetailedRender, RealisticRender] covers the typical
"user is inspecting / presenting" presets.
Configures stencil-based section-plane caps for a View.
The renderer implementation uses a per-plane stencil dance — front-cull pass and back-cull pass write to the stencil counter; a quad on the cut plane is then drawn with the cap colour wherever stencil != 0. The cap surface therefore appears only where the cut plane physically intersects the model, regardless of viewing angle or geometry shape.
Set
renderModesto[](or just don't toggle into a matching mode) to disable the stencil pass entirely — callers who want to provide their own cap geometry (precomputed cap meshes, CSG output from a B-rep kernel, etc.) can just register those as ordinary SceneObject | SceneObjects with ViewObject.clippable set tofalseso the section planes don't clip them.