Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
M54b: enforce orthographic viewport and rebalance tones
Yuechen Li15149d3c6cee
diff --git a/aetheris.client/src/App.css b/aetheris.client/src/App.cssindex fcb33ae5..16945694 100644--- a/aetheris.client/src/App.css+++ b/aetheris.client/src/App.css@@ -188,7 +188,7 @@min-height: 0;border-radius: calc(var(--layout-radius) - 2px);overflow: hidden;- background: linear-gradient(180deg, #f3f4f6 0%, #e4e7eb 100%);+ background: linear-gradient(180deg, #f2f4f7 0%, #dde2e8 100%);}.viewport-canvas-frame canvas {diff --git a/aetheris.client/src/viewer/ViewerViewport.tsx b/aetheris.client/src/viewer/ViewerViewport.tsxindex 4a0ea6f6..d5691c9d 100644--- a/aetheris.client/src/viewer/ViewerViewport.tsx+++ b/aetheris.client/src/viewer/ViewerViewport.tsx@@ -6,13 +6,13 @@ import { BufferAttribute, BufferGeometry, DoubleSide, MeshStandardMaterial, Raycimport type { RenderSceneData } from './tessellationMapper';const VIEWPORT_THEME = {- surfaceColor: '#8f9499',- edgeColor: '#3a3a3a',- edgeWidth: 1.25,- gridMinorColor: '#cfd4d9',- gridMajorColor: '#bcc2c8',- ambientIntensity: 0.35,- directionalIntensity: 0.65,+ surfaceColor: '#969ba1',+ edgeColor: '#2e2e2e',+ edgeWidth: 1.35,+ gridMinorColor: '#d9dee4',+ gridMajorColor: '#c7cdd3',+ ambientIntensity: 0.25,+ directionalIntensity: 0.75,selectionFaceColor: '#f59e0b',selectionEdgeColor: '#f59e0b',selectionEdgeWidth: 3,@@ -112,9 +112,9 @@ function PickRayCapture({ onPickRay }: { onPickRay?: ViewerViewportProps['onPickexport function ViewerViewport({ sceneData, highlightedFaceId = null, highlightedEdgeId = null, onPickRay }: ViewerViewportProps) {return (<div className="viewport-canvas-frame">- <Canvas camera={{ position: [4, 4, 4], fov: 50 }} gl={{ alpha: true }}>+ <Canvas orthographic camera={{ position: [6, 6, 6], zoom: 90, near: 0.1, far: 1000 }} gl={{ alpha: true }}><ambientLight intensity={VIEWPORT_THEME.ambientIntensity} />- <directionalLight position={[4, 8, 3]} intensity={VIEWPORT_THEME.directionalIntensity} />+ <directionalLight position={[-6, 9, 7]} intensity={VIEWPORT_THEME.directionalIntensity} /><gridHelper args={[20, 20, VIEWPORT_THEME.gridMajorColor, VIEWPORT_THEME.gridMinorColor]} /><axesHelper args={[2]} />{sceneData?.faces.map((face) => (