pycsamt.format.borehole.render#
Viewer-neutral render models for PCBH boreholes.
Functions
|
Build a render model with a short-lived builder. |
|
Return a process-independent, readable color for a vocabulary key. |
Classes
|
Build reusable render primitives while caching scientific paths. |
|
Complete viewer-neutral primitives for one borehole. |
|
Collar marker, label, selection state, and hover metadata. |
|
Contact-ring input located at an exact shared interval boundary. |
|
View-only borehole radius policy in document coordinate units. |
|
Colored portion of a centerline for one logged interval. |
|
Stable grouping of segments sharing one family and material color. |
|
Complete render contract for one PCBH document. |
|
One borehole centerline in document coordinates. |
|
Position and orientation inputs for one structural glyph. |
- class pycsamt.format.borehole.render.DisplayRadiusPolicy(mode='auto', fixed_radius=None, exaggeration=1.0, extent_fraction=0.001, minimum_radius=0.05)[source]
Bases:
PyCSAMTObjectView-only borehole radius policy in document coordinate units.
- Parameters:
- mode: str = 'auto'
- exaggeration: float = 1.0
- extent_fraction: float = 0.001
- minimum_radius: float = 0.05
- class pycsamt.format.borehole.render.CollarPrimitive(borehole_id, position, label, selected, metadata)[source]
Bases:
PyCSAMTObjectCollar marker, label, selection state, and hover metadata.
- Parameters:
- borehole_id: str
- label: str
- selected: bool
- class pycsamt.format.borehole.render.PolylinePrimitive(borehole_id, points, color, selected, metadata)[source]
Bases:
PyCSAMTObjectOne borehole centerline in document coordinates.
- Parameters:
- borehole_id: str
- points: tuple[TrajectoryPoint, ...]
- color: str
- selected: bool
- class pycsamt.format.borehole.render.IntervalSegmentPrimitive(segment_id, borehole_id, family, from_md, to_md, points, color, display_radius, selected, metadata)[source]
Bases:
PyCSAMTObjectColored portion of a centerline for one logged interval.
- Parameters:
- segment_id: str
- borehole_id: str
- family: str
- from_md: float
- to_md: float
- points: tuple[TrajectoryPoint, ...]
- color: str
- display_radius: float
- selected: bool
- class pycsamt.format.borehole.render.ContactPrimitive(contact_id, borehole_id, family, md, position, tangent, display_radius, left_code, right_code, selected, metadata)[source]
Bases:
PyCSAMTObjectContact-ring input located at an exact shared interval boundary.
- Parameters:
- contact_id: str
- borehole_id: str
- family: str
- md: float
- display_radius: float
- selected: bool
- class pycsamt.format.borehole.render.StructureGlyphPrimitive(glyph_id, borehole_id, kind, md, position, borehole_tangent, representation, orientation, display_radius, selected, metadata)[source]
Bases:
PyCSAMTObjectPosition and orientation inputs for one structural glyph.
- Parameters:
- glyph_id: str
- borehole_id: str
- kind: str
- md: float
- representation: str
- display_radius: float
- selected: bool
- class pycsamt.format.borehole.render.MaterialBatch(family, color, segment_ids)[source]
Bases:
PyCSAMTObjectStable grouping of segments sharing one family and material color.
- family: str
- color: str
- class pycsamt.format.borehole.render.BoreholeRenderModel(borehole_id, collar, centerline, interval_segments, contacts, structure_glyphs, source_checksum, display_radius)[source]
Bases:
PyCSAMTObjectComplete viewer-neutral primitives for one borehole.
- Parameters:
- borehole_id: str
- collar: CollarPrimitive
- centerline: PolylinePrimitive
- interval_segments: tuple[IntervalSegmentPrimitive, ...]
- contacts: tuple[ContactPrimitive, ...]
- structure_glyphs: tuple[StructureGlyphPrimitive, ...]
- source_checksum: str
- display_radius: float
- class pycsamt.format.borehole.render.PCBHRenderModel(document_id, crs_horizontal, coordinate_unit, boreholes, batches, bounds, lod_tolerance, sampling_step_md, max_points_per_hole, radius_policy)[source]
Bases:
PyCSAMTObjectComplete render contract for one PCBH document.
- Parameters:
- document_id: str
- crs_horizontal: str
- coordinate_unit: str
- boreholes: tuple[BoreholeRenderModel, ...]
- batches: tuple[MaterialBatch, ...]
- lod_tolerance: float
- sampling_step_md: float
- max_points_per_hole: int
- radius_policy: DisplayRadiusPolicy
- class pycsamt.format.borehole.render.BoreholeRenderBuilder[source]
Bases:
PyCSAMTObjectBuild reusable render primitives while caching scientific paths.
- clear_cache()[source]
Discard cached desurveyed centerlines.
- Return type:
None
- build(document, *, family='lithology', selected_ids=None, radius_policy=None, lod_tolerance=0.0, sampling_step_md=10.0, max_points_per_hole=10000)[source]
Build a backend-independent render model for one PCBH document.
- pycsamt.format.borehole.render.build_render_model(document, *, family='lithology', selected_ids=None, radius_policy=None, lod_tolerance=0.0, sampling_step_md=10.0, max_points_per_hole=10000)[source]
Build a render model with a short-lived builder.
Parameters mirror
BoreholeRenderBuilder.build(). Distances are in the document coordinate/depth unit and no CRS transformation is applied.