Skip to content

Feature/match cad scale - #13

Open
Ludofr3 wants to merge 9 commits into
refactor/shortcutfrom
feature/match-cad-scale
Open

Feature/match cad scale#13
Ludofr3 wants to merge 9 commits into
refactor/shortcutfrom
feature/match-cad-scale

Conversation

@Ludofr3

@Ludofr3 Ludofr3 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@Ludofr3
Ludofr3 marked this pull request as draft July 24, 2026 08:29
Ludofr3 added 3 commits July 24, 2026 11:20
Normalizes loaded CAD models to a uniform scale and handles
world-to-local coordinate conversions for Gmsh operations. Adjusts
camera frustums and raycasting distances accordingly.

- Calculates model scale factor based on bounding box dimensions
- Dynamically configures Gmsh mesh sizing relative to model size
- Converts coordinates for point creation, queries, and node meshes
- Removes redundant spline scaling logic from `SplineModel`
- Refines camera near/far clipping planes and extends raycast limits
@Ludofr3 Ludofr3 self-assigned this Jul 24, 2026
@Ludofr3
Ludofr3 marked this pull request as ready for review July 24, 2026 09:38
Ludofr3 added 3 commits July 27, 2026 11:02
Extracts shared adapter state into BaseAdapter and parameterizes curve
and hover color definitions across viewer components.

- Extracts `BaseAdapter` for `CADAdapter` and `SplineAdapter`
- Replaces hardcoded RGBA values with color attributes in adapters
- Sets cyan line color rendering for spline curves in `CurveApp`
- Updates default curve highlight color in viewer
Extracts duplicated hover and selection handling from CADAdapter and
SplineAdapter into BaseAdapter. Converts private adapter methods to
protected methods across the module.

- Moves `_handle_hover` and `_handle_curve_selected` to `BaseAdapter`
- Adds `_get_hover_info` hook for model-specific HUD info formatting
- Updates type hints and improves pick event handling in `CADAdapter`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant