Session#
Session is the headless workspace that backs both the
mosaic-pipeline CLI and MosaicData. It owns two
DataContainer instances (point clouds and fitted
models), dispatches geometry operations through
GeometryOperations, and reads or writes session
archives.
The class is also re-exported at top level as mosaic.Session for
scripting use.
Constructor#
Headless workspace that holds geometry data and dispatches operations. |
Target Resolution#
The shell and pipeline languages refer to geometries by index specifiers
("#3", "#1-5", "*", "@last"). These helpers turn specifiers
into concrete Geometry objects.
|
Resolve a target specifier to a list of Geometry objects. |
|
Resolve multiple specifiers, preserving order and deduplicating. |
File I/O#
|
Load geometries from a file. |
|
Export geometries to a file. |
|
Save session state to filepath. |
|
Restore session state from a session file. |
Operations#
Every registered operation in GeometryOperations
is dispatched through apply(). Per-geometry scalar properties
(volume, surface area, …) are evaluated through measure().
|
Apply a |
|
Compute a property via |
Filtering and Queries#
Select geometries by predicate over their measured properties.
|
Filter geometries by property value range. |
|
Return matching geometries as |
Container Manipulation#
|
Remove geometries from the session. |
|
Merge multiple geometries into one. |
|
Assign geometries to a named group. |
|
Remove geometries from their groups. |
Logging#
|
Append a command string to the session log. |