fix open 3d cannot work in linux

This commit is contained in:
ykcheungab
2026-06-29 10:47:46 +08:00
parent 04a4df3303
commit 4cc1027cc8
2 changed files with 106 additions and 16 deletions
+6 -6
View File
@@ -84,9 +84,9 @@ class PanelSetup:
# --- Top strip: mesh | arrows? | charts | settings (edit order and sizes here) ---
TOP_ROW = PanelRow(
slots=(
PanelSlot("mesh", "3D mesh", width_px=600, height_px=600),
PanelSlot("arrows", "UV Unrolled", width_px=500, height_px=500, enabled=True),
PanelSlot("charts", "Force charts", width_px=400, height_px=500),
PanelSlot("mesh", "3D mesh", width_px=400, height_px=400),
PanelSlot("arrows", "UV Unrolled", width_px=400, height_px=400, enabled=True),
PanelSlot("charts", "Force charts", width_px=300, height_px=400),
PanelSlot("settings", "Settings", width_px=200, height_px=0),
),
)
@@ -223,8 +223,8 @@ class DashboardLayout:
panel_setup: PanelSetup = PANEL_SETUP
window_title: str = "Orisys Finger Dashboard"
window_width: int = 1600
window_height: int = 620
window_width: int = 1300
window_height: int = 520
root_margin_px: int = 6
root_spacing_px: int = 6
@@ -242,7 +242,7 @@ class DashboardLayout:
# UV arrow panel: min flow magnitude to draw an arrow (display only; not dd02-ov.json contact.flow_threshold)
arrow_flow_threshold: float = 1.0
# "unrolled" = sensor texture; "pure_color" = solid canvas (tune colors via arrow_canvas_colors)
arrow_background: ArrowBackground = "unrolled"
arrow_background: ArrowBackground = "pure_color"
arrow_canvas_colors: ArrowCanvasColors = ARROW_CANVAS_COLORS
mesh_lighting: MeshLighting = MESH_LIGHTING