Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/180.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remote rendering 4.1a: Share VTK pipeline between client and server renderers
40 changes: 1 addition & 39 deletions src/ansys/visor/viewer/renderer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Contract covers node lifecycle, per-part visual mutations,
camera, widget control (cross-section, bounding box, edges), widget fan-out
(scene bounds, actor count), picking, and render.
(scene bounds, actor count), and render.

"""

Expand Down Expand Up @@ -297,44 +297,6 @@ def update_bounds(self, bounds: list[float]) -> None:
def update_actor_count(self, count: int) -> None:
"""Propagate the current part-node count to widgets."""

# ------------------------------------------------------------------------
# Picking
# ------------------------------------------------------------------------

@abstractmethod
def pick_geometry(
self,
actor_wasm_id: int,
cell_id: int,
mode: str,
world_pos: tuple[float, float, float],
) -> dict:
"""
Resolve a client-initiated pick event to a sub-geometry payload.

The renderer resolves the client-supplied opaque actor identifier to
an internal actor; the coordinator never performs that resolution.

Parameters
----------
actor_wasm_id:
Client-supplied opaque actor identifier from the wasm-side picker.
cell_id:
Cell index within the picked actor's mapper dataset.
mode:
``"vertex" | "edge" | "face"``.
world_pos:
World-space pick position from the client picker, used to select
the nearest vertex/edge for multi-vertex/edge cells.

Returns
-------
dict
Backend-neutral pick result. Always contains ``"found": bool``.
When ``found`` is ``True``, contains ``"mode"`` and mode-specific
fields (``position`` / ``pointA``+``pointB``+``length`` /
``points``+``area``).
"""

# ------------------------------------------------------------------------
# Render
Expand Down
Loading
Loading