chore: rename H7CAD to Open CAD Studio

Joining the OpenAEC Foundation (open-aec.com). Crate/struct become
OpenCADStudio, user-facing strings use the spaced "Open CAD Studio"
form, repo URLs point to HakanSeven12/open-cad-studio. Logo (window
icon + assets/logo.svg) redrawn with OCS initials. Drop examples/
binaries — unused.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-05-23 17:16:15 +03:00
commit ef1f9a08d6
57 changed files with 159 additions and 1301 deletions

View file

@ -9,7 +9,7 @@
// Zoom: adjusts `distance` (exponential feel).
// Snap: directly assigns yaw+pitch encoded as a quaternion (for ViewCube).
//
// Coordinate convention: Z-up world space (same as the rest of H7CAD).
// Coordinate convention: Z-up world space (same as the rest of OpenCADStudio).
use glam::{vec3, Mat4, Quat, Vec3};
use iced::{Point, Rectangle};

View file

@ -1,4 +1,4 @@
//! H7CAD-style grip editing.
//! OpenCADStudio-style grip editing.
use acadrust::Handle;
use glam::{Mat4, Vec3};
@ -13,7 +13,7 @@ pub const GRIP_HALF_PX: f32 = 5.0;
// ── Active drag state ─────────────────────────────────────────────────────
/// Stored on `H7CAD` while a grip is being dragged.
/// Stored on `OpenCADStudio` while a grip is being dragged.
#[derive(Clone, Debug)]
pub struct GripEdit {
/// Handle of the entity being edited.

View file

@ -1,4 +1,4 @@
// H7CAD hatch pattern catalog — built from `assets/patterns/H7CAD.pat`.
// OpenCADStudio hatch pattern catalog — built from `assets/patterns/OpenCADStudio.pat`.
//
// Each `PatternEntry` wraps a parsed PAT pattern with:
// - `gpu` — `HatchPattern::Pattern(families)` for the shader

View file

@ -3914,7 +3914,7 @@ impl Scene {
.document
.views
.iter()
.find(|v| v.name == "H7CAD_Camera_Model")
.find(|v| v.name == "OpenCADStudio_Camera_Model")
.cloned();
if let Some(view) = saved_view {
return self.apply_camera_from_view_entry(&view, true);
@ -3978,7 +3978,7 @@ impl Scene {
/// Returns true if a valid sheet viewport was found and the camera was set.
fn apply_sheet_viewport_camera(&mut self) -> bool {
// Prefer our named View entry — survives DWG save without being overridden.
let view_name = format!("H7CAD_Camera_{}", self.current_layout);
let view_name = format!("OpenCADStudio_Camera_{}", self.current_layout);
let saved_view = self
.document
.views
@ -4094,7 +4094,7 @@ impl Scene {
}
// Also write to View table — survives DWG save without override.
self.write_camera_view_entry("H7CAD_Camera_Model", target_wcs, vd3, view_height);
self.write_camera_view_entry("OpenCADStudio_Camera_Model", target_wcs, vd3, view_height);
true
} else {
let target_wcs = acadrust::types::Vector3 {
@ -4102,7 +4102,7 @@ impl Scene {
y: cam.target.y as f64,
z: cam.target.z as f64,
};
let view_name = format!("H7CAD_Camera_{}", self.current_layout);
let view_name = format!("OpenCADStudio_Camera_{}", self.current_layout);
// Write back to the sheet viewport entity.
let layout_block = self.current_layout_block_handle();

View file

@ -1,4 +1,4 @@
// ViewCube wgpu pipeline — H7CAD-style interactive 3D navigation cube.
// ViewCube wgpu pipeline — OpenCADStudio-style interactive 3D navigation cube.
//
// 26 selectable regions: 6 faces + 12 edges + 8 corners.
// Phong shading + hover highlight passed as uniform.