// Dimensions and Specs export const GPU_SPECS = { BRACKET_WIDTH_SINGLE: 18.42, SLOT_PITCH: 20.32, ALIGNMENT_OFFSET: 6.54, // Updated from 5.09 based on user calc DEFAULT_BODY_LENGTH: 265, DEFAULT_DIMS: { w: 267, h: 112, d: 51 }, BRACKET: { HEIGHT: 120, THICKNESS: 2, DROP_BELOW_BODY: 30, X_OFFSET: -0.8, HOLE_DIA: 4.0, // Clearance for #6-32 HOLE_OFFSET_Z: 10.8, // Distance from the bend (face) to center of hole (approx center of 0.85" flange) FLANGE_LENGTH: 21.59, // Standard PCIe flange length (0.85 inch) HOLE_X_OFFSET: -4.5, // Shift holes left to visually match "edge" alignment }, }; export const COOLER_SPECS = { FAN_DEPTH: 25, MIN_HEATSINK_DEPTH: 10, TOWER_120: { w: 125, h: 160, d: 80 }, }; export const MOTHERBOARD_SPECS = { DIMENSIONS: { ITX: { w: 170, d: 170 }, MATX: { w: 244, d: 244 }, ATX: { w: 305, d: 244 }, }, LAYOUT_ATX_2_2: { KEEPOUT_SIZE: 77.5, KEEPOUT_LEFT: 61.3, KEEPOUT_TOP: 51.3, CPU_SOCKET: { w: 45, h: 4.5, d: 37.5 }, RAM_SLOT: { w: 127, h: 4, d: 6 }, RAM_OFFSET_RIGHT: 14, RAM_OFFSET_TOP: 139, RAM_PITCH: 9.5, EPS8: { w: 10, h: 5, d: 18.75 }, ATX24: { w: 52, h: 5, d: 10 }, PCIE_X16: { w: 7.2, h: 11, d: 89.5 }, PCIE_OFFSET_TOP: 45.5, IO_APERTURE: { w: 158.75, h: 44.45, d: 19 }, IO_APERTURE_OFFSET_LEFT: 13.56, IO_APERTURE_OFFSET_TOP: -1.14, IO_KEEPOUT: 2.54, IO_SHIELD_RECESS_DEPTH: 2.0, IO_BODY_VERTICAL_OFFSET: 40.64, IO_BODY_HORIZONTAL_OFFSET: 2.44, IO_BODY_Z_OFFSET: 3.43, }, // Virtual Origin for Alignment (0.4" from Left, 0.25" from Top) ANCHOR: { x: -6.35, y: 10.16 }, // Hole coordinates relative to ANCHOR (User Calculated) // F: Top-Right (0, 22.86) // A, B, C: Top-Lefts (Y=0) HOLES: { F: [0, 22.86], C: [-157.48, 0], // ITX Left B: [-203.20, 0], // mATX Left A: [-281.94, 0], // ATX Left (Full width) J: [0, 154.94], // Mid Right H: [-157.48, 154.94], // Mid ITX Left G: [-281.94, 154.94], // Mid ATX Left M: [0, 227.33], // Bot Right L: [-157.48, 227.33], // Bot ITX Left K: [-281.94, 227.33], // Bot ATX Left }, // ITX: C, F, H, J get ITX_HOLES() { return [this.HOLES.C, this.HOLES.F, this.HOLES.H, this.HOLES.J]; }, // mATX: B, C, F, H, J, L, M get MATX_HOLES() { return [ this.HOLES.B, this.HOLES.C, this.HOLES.F, this.HOLES.H, this.HOLES.J, this.HOLES.L, this.HOLES.M ]; }, // ATX: A, B, C, F, G, H, J, K, L, M get ATX_HOLES() { return [ this.HOLES.A, this.HOLES.B, this.HOLES.C, this.HOLES.F, this.HOLES.G, this.HOLES.H, this.HOLES.J, this.HOLES.K, this.HOLES.L, this.HOLES.M ]; }, ATX_HOLE_FH_TOP_OFFSET: 163.83, }; export const RAM_SPECS = { DIMM: { w: 133, h: 31, d: 7 }, SLOT_LENGTH_ITX: 127, SLOT_LENGTH_ATX: 130, SPACING_ITX: 9, SPACING_ATX: 10, }; export const PSU_SPECS = { SFX: { w: 125, h: 63.5, d: 100 }, ATX: { w: 150, h: 86, d: 140 }, }; export const PCIE_SPECS = { SLOT_HEIGHT: 11, CONTACT_OFFSET: 5, FINGER_LENGTH: 89, FINGER_HEIGHT: 12.5, FINGER_THICKNESS: 1.6, FINGER_OFFSET_FROM_BRACKET: 45.5, FINGER_DROP: -5, }; export const PSU_HOLE_LAYOUTS = { // Relative to Bottom-Left of Rear Face (Looking at rear) // X is Width (Right+), Y is Height (Up+) ATX: [ [6.0, 80.0], // Top-Left [144.0, 80.0], // Top-Right [120.0, 6.0], // Bottom-Right [6.0, 16.0], // Bottom-Left (Indented/Raised) ], SFX: [ [6.0, 57.5], // Top-Left [119.0, 57.5], // Top-Right [119.0, 6.0], // Bottom-Right [6.0, 6.0], // Bottom-Left ], }; export const REFERENCE_OBJECT_SPECS = { COKE_CAN_DIAMETER: 66, COKE_CAN_HEIGHT: 115, }; export const GPU_PCIE_FINGER_DEFAULTS = Object.freeze({ height: 12.5, // mm finger height visualDrop: 0, // mm; 0 keeps finger top flush with GPU bottom face insertionDepth: 5, // mm; intended slot engagement depth (does not move mesh center) zOffsetFromBack: 3, // mm from back face (PCB side) to finger center along Z connectorEpsUp: 0.1, // mm; lift connector slightly above bottom edge to avoid being under geometry }); // Editor Configuration export const EDITOR_CONFIG = { DUPLICATE_OFFSET: 25, SNAP_THRESHOLD: 3, DRILL_MAX_DIM: 1000, DRILL_MARGIN: 0.5, }; // Colors export const COLORS = { SELECTION: { PRIMARY: "#ef4444", // Red SECONDARY: "#eab308", // Yellow TERTIARY: "#ef4444", // Red (fallback/default for >2) IMPORTED: "#60a5fa", // Blue for imported }, DEFAULT: { GPU_BRACKET: "#9ca3af", GPU_BODY: "#475569", GPU_FINGER: "#fbbf24", MOTHERBOARD: "#81a1c1", MOTHERBOARD_HOLE: "#202020", GROUP_GHOST: "#4f46e5", STRUCTURE: "#d1d5db", GENERIC_PART: "#ffaa44", IMPORTED_DEFAULT: "#94a3b8", SILVER: "#e2e8f0", FAN_BLACK: "#1e293b", RED_PAINT: "#ef4444", }, }; export const MATERIAL_PRESETS = { STANDARD: { id: 'standard', name: 'Standard (Matte)', metalness: 0, roughness: 0.8, clearcoat: 0, transmission: 0, opacity: 1, transparent: false, }, METAL: { id: 'metal', name: 'Metal (Aluminum)', metalness: 0.9, roughness: 0.3, clearcoat: 0.1, transmission: 0, opacity: 1, isMetal: true, // Helper for UI or logic }, POLISHED_METAL: { id: 'polished_metal', name: 'Polished Metal', metalness: 1.0, roughness: 0.1, clearcoat: 0.5, transmission: 0, opacity: 1, }, GLASS: { id: 'glass', name: 'Tempered Glass', metalness: 0, roughness: 0.05, clearcoat: 1.0, transmission: 0.95, // High transmission for glass opacity: 0.3, // Visual fallback thickness: 1.5, // Refraction thickness ior: 1.5, transparent: true, }, GLOSSY_PLASTIC: { id: 'glossy', name: 'Glossy Plastic', metalness: 0, roughness: 0.1, clearcoat: 0.8, transmission: 0, opacity: 1, } };