Build Dream Machine CSG showpiece

This commit is contained in:
Meta Vens 2026-05-07 16:09:41 +01:00
commit a32de9db4f
8 changed files with 66148 additions and 7 deletions

View file

@ -0,0 +1,421 @@
use std::{
fmt::Write as _,
fs, io,
path::{Path, PathBuf},
};
use bevy_math::{Quat, Vec3};
use vg_csg::{DomeCapZSpec, FloretArmSpec, LevelDsl, MaterialId, TriangleMesh};
const FLOOR: MaterialId = MaterialId(1);
const WALL: MaterialId = MaterialId(2);
const GLASS: MaterialId = MaterialId(3);
const SOLAR: MaterialId = MaterialId(4);
const RADIATOR: MaterialId = MaterialId(5);
const MACHINE: MaterialId = MaterialId(6);
const TOWER: MaterialId = MaterialId(7);
const PARK: MaterialId = MaterialId(8);
const LIGHT: MaterialId = MaterialId(9);
fn main() -> io::Result<()> {
let mut level = LevelDsl::new();
add_machine_nave(&mut level);
add_anchor_city(&mut level);
add_radial_petals(&mut level);
add_service_arteries(&mut level);
let output = level.assemble();
let out_dir = output_dir();
fs::create_dir_all(&out_dir)?;
write_obj_bundle(&out_dir, "dream_machine_level", &output.mesh)?;
fs::write(
out_dir.join("dream_machine_level_preview.svg"),
svg_preview(&output.mesh),
)?;
println!(
"dream_machine_level brushes={} convex_fragments={} vertices={} triangles={} candidate_pairs={} rejected_pairs={} warnings={} obj={} preview={}",
output.report.input_brushes,
output.report.emitted_convex_fragments,
output.mesh.vertex_count(),
output.mesh.triangle_count(),
output.report.candidate_pairs,
output.report.rejected_pairs,
output.report.warnings.len(),
out_dir.join("dream_machine_level.obj").display(),
out_dir.join("dream_machine_level_preview.svg").display(),
);
if !output.report.warnings.is_empty() {
eprintln!("warnings: {:?}", output.report.warnings);
}
Ok(())
}
fn add_machine_nave(level: &mut LevelDsl) {
level.solid_box(
"machine nave foundation",
Vec3::new(0.0, 0.0, -0.35),
Vec3::new(70.0, 42.0, 0.7),
FLOOR,
);
level.solid_box(
"central reactor plinth",
Vec3::new(0.0, 0.0, 0.35),
Vec3::new(15.0, 15.0, 0.7),
MACHINE,
);
level.cylinder_z(
"reactor throat",
Vec3::new(0.0, 0.0, 2.0),
4.4,
4.0,
48,
LIGHT,
);
level.dome_cap_z(
"glass computation dome",
DomeCapZSpec {
center: Vec3::new(0.0, 0.0, 0.7),
radius: 11.0,
height: 7.0,
rings: 12,
segments: 64,
material: GLASS,
},
);
for side in [-1.0_f32, 1.0] {
level.solid_box(
format!("long retaining wall {side}"),
Vec3::new(0.0, side * 21.0, 2.0),
Vec3::new(70.0, 1.0, 4.0),
WALL,
);
level.cut_box(
format!("service arcade cut {side}"),
Vec3::new(0.0, side * 21.0, 1.6),
Vec3::new(54.0, 1.4, 2.6),
);
}
for index in 0..18 {
let x = -32.0 + index as f32 * 3.8;
let angle = if index % 2 == 0 { 0.42 } else { -0.42 };
level.cut_oriented_box(
format!("diagonal vent throat {index}"),
Vec3::new(x, 0.0, 0.25),
Vec3::new(0.8, 35.0, 2.0),
Quat::from_rotation_z(angle),
);
}
for index in 0..9 {
let x = -30.0 + index as f32 * 7.5;
level.solid_box(
format!("overhead rib {index}"),
Vec3::new(x, 0.0, 5.2),
Vec3::new(0.8, 43.5, 1.0),
MACHINE,
);
}
}
fn add_anchor_city(level: &mut LevelDsl) {
for ring in 0..5 {
let radius = 13.5 + ring as f32 * 3.2;
let blocks = 10 + ring * 6;
let height_base = 6.5 - ring as f32 * 0.95;
let mat = if ring < 2 {
TOWER
} else if ring == 3 {
PARK
} else {
WALL
};
for index in 0..blocks {
let t = index as f32 / blocks as f32;
let angle = t * std::f32::consts::TAU + ring as f32 * 0.21;
let jitter = seeded_wave(ring as f32 * 17.0 + index as f32 * 3.1);
let radial = Vec3::new(angle.cos(), angle.sin(), 0.0);
let tangent_angle = angle + std::f32::consts::FRAC_PI_2;
let center = radial * (radius + jitter * 0.55);
let footprint = Vec3::new(1.4 + jitter.abs() * 0.8, 1.0 + ring as f32 * 0.15, 1.0);
let height = (height_base + jitter * 2.1).max(1.2);
level.solid_oriented_box(
format!("anchor city block r{ring} b{index}"),
Vec3::new(center.x, center.y, height * 0.5),
Vec3::new(footprint.x, footprint.y, height),
Quat::from_rotation_z(tangent_angle),
mat,
);
}
}
for index in 0..12 {
let angle = index as f32 * std::f32::consts::TAU / 12.0;
let radial = Vec3::new(angle.cos(), angle.sin(), 0.0);
level.solid_oriented_box(
format!("anchor plaza spoke {index}"),
radial * 17.0 + Vec3::new(0.0, 0.0, 0.08),
Vec3::new(18.0, 0.45, 0.16),
Quat::from_rotation_z(angle),
LIGHT,
);
}
}
fn add_radial_petals(level: &mut LevelDsl) {
for index in 0..24 {
let angle = index as f32 * std::f32::consts::TAU / 24.0;
let direction = Vec3::new(angle.cos(), angle.sin(), 0.0);
let material = if index % 2 == 0 { SOLAR } else { RADIATOR };
let length = if index % 3 == 0 { 58.0 } else { 44.0 };
let lift = if index % 2 == 0 { 2.8 } else { 1.4 };
level.floret_arm(
format!("citadel-scale ray floret {index}"),
FloretArmSpec {
anchor: direction * 22.0 + Vec3::Z * 0.4,
direction,
length,
root_width: 3.0,
tip_width: 9.0,
thickness: 0.16,
tip_lift: lift,
material,
},
);
}
}
fn add_service_arteries(level: &mut LevelDsl) {
for index in 0..16 {
let angle = index as f32 * std::f32::consts::TAU / 16.0;
let radius = 24.0 + (index % 4) as f32 * 4.0;
let center_angle = angle + 0.38;
let center = Vec3::new(
center_angle.cos() * radius,
center_angle.sin() * radius,
1.1,
);
let length = 21.0 + (index % 3) as f32 * 5.0;
let width = if index % 2 == 0 { 0.7 } else { 1.05 };
let material = if index % 2 == 0 { MACHINE } else { LIGHT };
level.solid_oriented_box(
format!("looping cargo artery {index}"),
center,
Vec3::new(length, width, 0.55),
Quat::from_rotation_z(angle + 0.95),
material,
);
}
for index in 0..10 {
let angle = index as f32 * std::f32::consts::TAU / 10.0 + 0.18;
let radial = Vec3::new(angle.cos(), angle.sin(), 0.0);
level.solid_box(
format!("outer machine pier {index}"),
radial * 38.0 + Vec3::new(0.0, 0.0, 1.4),
Vec3::new(1.1, 1.1, 2.8),
MACHINE,
);
}
}
fn seeded_wave(value: f32) -> f32 {
(value.sin() * 0.63 + (value * 1.73).cos() * 0.37).clamp(-1.0, 1.0)
}
fn output_dir() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("..")
.join("..")
.join("experiments")
.join("generated")
.join("dream_machine_level")
}
fn write_obj_bundle(dir: &Path, name: &str, mesh: &TriangleMesh) -> io::Result<()> {
fs::write(dir.join(format!("{name}.mtl")), material_library())?;
fs::write(dir.join(format!("{name}.obj")), obj_text(name, mesh))?;
Ok(())
}
fn obj_text(name: &str, mesh: &TriangleMesh) -> String {
let mut out = String::new();
let _ = writeln!(out, "mtllib {name}.mtl");
let _ = writeln!(out, "o {name}");
for position in &mesh.positions {
let _ = writeln!(out, "v {} {} {}", position.x, position.y, position.z);
}
for uv in &mesh.uvs {
let _ = writeln!(out, "vt {} {}", uv.x, uv.y);
}
for normal in &mesh.normals {
let _ = writeln!(out, "vn {} {} {}", normal.x, normal.y, normal.z);
}
let mut active_material = None;
for (tri_index, face) in mesh.indices.chunks_exact(3).enumerate() {
let material = mesh
.triangle_materials
.get(tri_index)
.copied()
.unwrap_or_default();
if active_material != Some(material) {
let _ = writeln!(out, "usemtl {}", material_name(material));
active_material = Some(material);
}
let a = face[0] + 1;
let b = face[1] + 1;
let c = face[2] + 1;
let _ = writeln!(out, "f {a}/{a}/{a} {b}/{b}/{b} {c}/{c}/{c}");
}
out
}
fn material_library() -> String {
[
material_text(FLOOR, "0.36 0.35 0.31", "0.05 0.05 0.05"),
material_text(WALL, "0.42 0.43 0.42", "0.04 0.04 0.04"),
material_text(GLASS, "0.30 0.80 1.00", "0.20 0.55 0.70"),
material_text(SOLAR, "0.05 0.11 0.20", "0.00 0.18 0.28"),
material_text(RADIATOR, "0.70 0.58 0.44", "0.28 0.12 0.04"),
material_text(MACHINE, "0.16 0.17 0.18", "0.06 0.07 0.08"),
material_text(TOWER, "0.72 0.76 0.78", "0.12 0.16 0.18"),
material_text(PARK, "0.22 0.46 0.25", "0.02 0.08 0.02"),
material_text(LIGHT, "0.08 0.75 0.90", "0.00 0.65 0.85"),
]
.join("\n")
}
fn material_text(id: MaterialId, kd: &str, ke: &str) -> String {
format!("newmtl {}\nKd {kd}\nKe {ke}\nNs 80\n", material_name(id))
}
fn material_name(id: MaterialId) -> &'static str {
match id {
FLOOR => "mat_floor",
WALL => "mat_wall",
GLASS => "mat_glass",
SOLAR => "mat_solar",
RADIATOR => "mat_radiator",
MACHINE => "mat_machine",
TOWER => "mat_tower",
PARK => "mat_park",
LIGHT => "mat_light",
_ => "mat_default",
}
}
fn svg_preview(mesh: &TriangleMesh) -> String {
let width = 1600.0_f32;
let height = 1050.0_f32;
let margin = 42.0_f32;
let mut projected = Vec::with_capacity(mesh.positions.len());
for point in &mesh.positions {
let x = (point.x - point.y) * 0.82;
let y = (point.x + point.y) * 0.34 - point.z * 1.15;
let depth = point.x + point.y + point.z * 0.7;
projected.push((x, y, depth));
}
let mut min_x = f32::INFINITY;
let mut max_x = f32::NEG_INFINITY;
let mut min_y = f32::INFINITY;
let mut max_y = f32::NEG_INFINITY;
for (x, y, _) in &projected {
min_x = min_x.min(*x);
max_x = max_x.max(*x);
min_y = min_y.min(*y);
max_y = max_y.max(*y);
}
let span_x = (max_x - min_x).max(1.0);
let span_y = (max_y - min_y).max(1.0);
let scale = ((width - margin * 2.0) / span_x).min((height - margin * 2.0) / span_y);
let ox = (width - span_x * scale) * 0.5 - min_x * scale;
let oy = (height - span_y * scale) * 0.5 - min_y * scale;
let mut tris = Vec::with_capacity(mesh.triangle_count());
for (tri_index, face) in mesh.indices.chunks_exact(3).enumerate() {
let a = projected[face[0] as usize];
let b = projected[face[1] as usize];
let c = projected[face[2] as usize];
let depth = (a.2 + b.2 + c.2) / 3.0;
let points = [
(a.0 * scale + ox, a.1 * scale + oy),
(b.0 * scale + ox, b.1 * scale + oy),
(c.0 * scale + ox, c.1 * scale + oy),
];
let material = mesh
.triangle_materials
.get(tri_index)
.copied()
.unwrap_or_default();
tris.push((depth, material, points));
}
tris.sort_by(|a, b| a.0.total_cmp(&b.0));
let mut out = String::new();
let _ = writeln!(
out,
"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 {width} {height}\">"
);
let _ = writeln!(
out,
"<rect width=\"100%\" height=\"100%\" fill=\"#111315\"/>"
);
let _ = writeln!(
out,
"<g stroke=\"#07090a\" stroke-width=\"0.45\" stroke-linejoin=\"round\">"
);
for (_, material, points) in tris {
let _ = writeln!(
out,
"<polygon points=\"{:.2},{:.2} {:.2},{:.2} {:.2},{:.2}\" fill=\"{}\" opacity=\"{}\"/>",
points[0].0,
points[0].1,
points[1].0,
points[1].1,
points[2].0,
points[2].1,
svg_fill(material),
svg_opacity(material),
);
}
let _ = writeln!(out, "</g>");
let _ = writeln!(out, "</svg>");
out
}
fn svg_fill(id: MaterialId) -> &'static str {
match id {
FLOOR => "#5c5a51",
WALL => "#6b6d6a",
GLASS => "#54cff5",
SOLAR => "#112134",
RADIATOR => "#b59670",
MACHINE => "#292c2f",
TOWER => "#b7c0c4",
PARK => "#387541",
LIGHT => "#20d6f0",
_ => "#808080",
}
}
fn svg_opacity(id: MaterialId) -> &'static str {
match id {
GLASS => "0.42",
LIGHT => "0.88",
SOLAR | RADIATOR => "0.94",
_ => "1.0",
}
}

View file

@ -0,0 +1,56 @@
# Dream Machine Level Slice
This is the first visible Rust-side showpiece for the CSG assembler.
Run:
```powershell
cargo run -p vg_csg --example dream_machine_level
```
Outputs:
- `experiments/generated/dream_machine_level/dream_machine_level.obj`
- `experiments/generated/dream_machine_level/dream_machine_level.mtl`
- `experiments/generated/dream_machine_level/dream_machine_level_preview.svg`
Current build stats:
- brushes: 207
- convex fragments: 375
- vertices: 17,552
- triangles: 6,448
- candidate pairs: 384
- rejected pairs: 1,343
- CSG warnings: 0
## Composition
The level is a machine-cathedral switchyard built directly through
`LevelDsl`. It combines:
- a cut foundation nave with long retaining walls and diagonal vent voids
- a central reactor plinth, cylinder throat, and glass dome cap
- concentric anchor-city towers fading into lower blocks and park patches
- radial plaza strips proving shared polar coordinate intent
- alternating solar and radiator ray florets extending far past the city disk
- looping cargo arteries and outer piers for large-scale structure language
The point is not visual finality. The point is a durable artifact that proves
the Rust CSG organ can already author a named, inspectable, multi-part spatial
idea and emit a portable mesh without waiting for the Bevy renderer loop.
## Doctrine
Use `LevelDsl` as the fast blockout brush, not as a secret final art pipe.
When the idea needs proof now, the DSL can hold the spatial claim in explicit
named primitives, export mesh evidence, and keep the pressure on the CSG kernel.
Additive habitat primitives are useful as scale-language anchors. Dome caps and
florets make the scene read as infrastructure instead of only boxes. The CSG
cuts still carry the machine grammar: trenches, vents, arcades, and service
voids are how solid mass becomes a level instead of a pile.
The preview SVG is deliberately dumb. It is a quick inspection surface for
shape, density, material partitioning, and catastrophic export failures. It is
not a substitute for Blender or Bevy render review.

View file

@ -0,0 +1,44 @@
newmtl mat_floor
Kd 0.36 0.35 0.31
Ke 0.05 0.05 0.05
Ns 80
newmtl mat_wall
Kd 0.42 0.43 0.42
Ke 0.04 0.04 0.04
Ns 80
newmtl mat_glass
Kd 0.30 0.80 1.00
Ke 0.20 0.55 0.70
Ns 80
newmtl mat_solar
Kd 0.05 0.11 0.20
Ke 0.00 0.18 0.28
Ns 80
newmtl mat_radiator
Kd 0.70 0.58 0.44
Ke 0.28 0.12 0.04
Ns 80
newmtl mat_machine
Kd 0.16 0.17 0.18
Ke 0.06 0.07 0.08
Ns 80
newmtl mat_tower
Kd 0.72 0.76 0.78
Ke 0.12 0.16 0.18
Ns 80
newmtl mat_park
Kd 0.22 0.46 0.25
Ke 0.02 0.08 0.02
Ns 80
newmtl mat_light
Kd 0.08 0.75 0.90
Ke 0.00 0.65 0.85
Ns 80

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 577 KiB

View file

@ -67,6 +67,13 @@ Research note: `docs/research/realtime-csg-bevy-assembler.md`.
Where `vg_csg` overlaps public RealtimeCSG/demo behavior, add exact observable
parity fixtures instead of approximate plausibility tests.
Current visible Rust-side showpiece: `cargo run -p vg_csg --example
dream_machine_level` emits `experiments/generated/dream_machine_level/` with
OBJ, MTL, and SVG preview artifacts. It is a machine-cathedral switchyard:
cut foundation nave, central glass dome, anchor-city towers, giant alternating
solar/radiator florets, looping cargo arteries, and material partitions. Build
note: `docs/research/builds/dream-machine-level.md`.
`crates/vg_grammar` is the Dream Machine grammar layer above CSG. Rules emit
semantic solid/void claims with tags, then compile those claims into `vg_csg`
brushes. Current features: local `Frame`s, oriented claims, seeded variation,
@ -80,11 +87,11 @@ Repo-local Geometry Script clone notes live in
`.\tools\setup_geometry_script_clone.ps1` if `external/geometry-script` is
missing.
The current next action is to use the new demand-frontier counters to replace
the ordered `vg_csg` dense rotated subtraction path with a category-router
kernel. Keep cached-vs-dirty output parity tests green, compare against the C++
timing oracle, and only add BVH/grid storage after frontier batching proves it
needs one.
The current next action is to build the first Bevy inspection shell around the
Rust-side CSG artifact, using the Dream Machine level as the load/generate
target. Keep orbit camera, material groups, and dirty edit hooks visible so
future mesh-patching work is judged against an actual interactive object rather
than isolated timing fixtures.
Spatial-query correction from EpiphanyAquarium memory: GigaVoxels, froxels, and
Dreams all point away from static "better tree" thinking. Let the consumer

View file

@ -71,3 +71,4 @@
{"ts": "2026-05-07T14:39:10+00:00", "type": "implementation", "status": "ok", "note": "Added conservative mesh reuse for vg_csg incremental dirty rebuilds. Mutations no longer discard the previous BuildOutput; suffix replay tracks whether geometry was touched, and rejected dirty suffixes reuse the prior mesh exactly. BuildReport exposes reused_mesh and tests cover distant tail edits. Candidate edits still emit the whole mesh."}
{"ts": "2026-05-07T14:50:34+00:00", "type": "implementation", "status": "ok", "note": "Corrected vg_csg dirty perf semantics: rebuild now bypasses checkpoint caches, while build populates them. The honest fixture showed box candidate edits are faster through the direct box builder than checkpoint replay, so incremental box dirty edits now fall back to direct unless future mesh patching changes that. Added distant_oriented_cutters_128 to exercise conservative reused_mesh on the general convex path."}
{"ts": "2026-05-07T14:55:58+00:00", "type": "implementation", "status": "ok", "note": "Added explicit rebuild-strategy fields to vg_csg BuildReport and perf JSON: used_checkpoint, checkpoint_rebuild_from, and direct_dirty_rebuild. Tests now pin direct box fallback, general convex checkpoint replay, and reused_mesh for rejected general convex edits so future timings cannot hide which path ran."}
{"ts": "2026-05-07T15:08:41+00:00", "type": "implementation", "status": "ok", "note": "Rust CSG vertical slice added: dream_machine_level example emits a named multi-part machine-cathedral OBJ/MTL/SVG artifact, proving LevelDsl can carry visible showpiece blockouts before Bevy renderer integration."}

View file

@ -81,6 +81,7 @@ current_artifacts:
- docs/research/translations/ircss-french-houses-node-mechanisms.md
- docs/research/builds/aetheria-bloom-habitat.md
- docs/research/builds/lucent-tether-habitat.md
- docs/research/builds/dream-machine-level.md
- docs/research/realtime-csg-bevy-assembler.md
- crates/vg_csg/
- crates/vg_grammar/
@ -110,8 +111,8 @@ data_flow:
- If state grows faster than understanding, cut it back.
current_status:
summary: VibeGeometry has verified Geometry Script translations for local samples, official Blender demos, and IRCSS French Houses footholds, plus from-scratch Aetheria Bloom and Lucent tether habitat builds. Durable lessons now driving the pipeline: Python orchestrates intent and batching; Geometry Script emits inspectable node groups; source-bound scenes need explicit coordinate contracts before ornament; spin-gravity habitats need ground planes orthogonal to their tether/rotation axis; utility petals, radiators, and solar arrays belong outside pressure glass and may need Citadel-scale presence; large habitat parts need visible load paths across coordinate frames; organic city maps need street fields, irregular parcels, parks, and land-use gradients rather than grids; dense detail must be batched; institutional spaces should model power as surfaces, rails, overlays, thresholds, shader behavior, and camera evidence; and visual acceptance needs domain-facing inspection renders plus verifier checks, not only overview renders. The first reusable `vibegeometry/` helper library now carries coordinate frames, fields, batching, Blender scene primitives, and verifier helpers used by the Bloom and Lucent builds. The Rust crate `vg_csg` now has a RealtimeCSG-shaped API skeleton plus a convex-brush stepping-stone kernel: CSG operation ordinals, branch vocabulary, tree/branch/brush handles, child and operation mutation, exact parity fixtures, ordered assembler compilation, AABB/oriented-box subtraction/intersection via convex plane splitting, crossing polygon category buckets, primitive/solid/tree bounds, additive cylinder/dome/floret primitives, JSONL performance fixtures with stable, dirty, and incremental dirty modes, mesh-array output, stable-generation output caching, dirty prefix checkpoints for general convex builders, conservative mesh reuse for rejected dirty suffixes, explicit rebuild-strategy report fields, tests, clippy, and examples. The `vg_grammar` crate is the Dream Machine authoring layer: semantic solid/void claims with tags compile into flat `vg_csg` brushes or generated CSG tree intent; it supports local frames, oriented claims, deterministic seeded variation, rule composition, and generated gallery chains. Public RealtimeCSG demo/source research points the target away from fragment carving and toward faster polygon classification through boolean trees. A standalone RealtimeCSG C++ P/Invoke bridge now mirrors the managed wrapper surface, verifies a native health cube, extracts generated mesh descriptions, and appends direct native timing records. Current perf pass: `vg_csg` has a fast axis-aligned direct path, cached compiled brush geometry, owned convex splitting, convex containment shortcuts, stable-tree output caching, valid-prefix incremental dirty caching for general convex edits, and report flags for `reused_mesh`, `used_checkpoint`, `checkpoint_rebuild_from`, and `direct_dirty_rebuild`; box candidate edits use the direct builder after an honest dirty baseline showed checkpoint replay is slower without real mesh patching. Known graph-tooling blockers remain repeat-zone feedback, repeat Top outputs, foreach zones, and gizmo nodes.
next_action: Build dirty mesh range patching for candidate edits: track emitted mesh spans for checkpointed CSG states, patch only changed ranges when suffix replay touches geometry, then port the valid-prefix checkpoint model into the compact category-router path without relaxing output parity.
summary: VibeGeometry has verified Geometry Script translations for local samples, official Blender demos, and IRCSS French Houses footholds, plus from-scratch Aetheria Bloom and Lucent tether habitat builds. Durable lessons now driving the pipeline: Python orchestrates intent and batching; Geometry Script emits inspectable node groups; source-bound scenes need explicit coordinate contracts before ornament; spin-gravity habitats need ground planes orthogonal to their tether/rotation axis; utility petals, radiators, and solar arrays belong outside pressure glass and may need Citadel-scale presence; large habitat parts need visible load paths across coordinate frames; organic city maps need street fields, irregular parcels, parks, and land-use gradients rather than grids; dense detail must be batched; institutional spaces should model power as surfaces, rails, overlays, thresholds, shader behavior, and camera evidence; and visual acceptance needs domain-facing inspection renders plus verifier checks, not only overview renders. The first reusable `vibegeometry/` helper library now carries coordinate frames, fields, batching, Blender scene primitives, and verifier helpers used by the Bloom and Lucent builds. The Rust crate `vg_csg` now has a RealtimeCSG-shaped API skeleton plus a convex-brush stepping-stone kernel: CSG operation ordinals, branch vocabulary, tree/branch/brush handles, child and operation mutation, exact parity fixtures, ordered assembler compilation, AABB/oriented-box subtraction/intersection via convex plane splitting, crossing polygon category buckets, primitive/solid/tree bounds, additive cylinder/dome/floret primitives, JSONL performance fixtures with stable, dirty, and incremental dirty modes, mesh-array output, stable-generation output caching, dirty prefix checkpoints for general convex builders, conservative mesh reuse for rejected dirty suffixes, explicit rebuild-strategy report fields, tests, clippy, and examples. The new `dream_machine_level` example proves the Rust side can already emit a named, inspectable, multi-part showpiece as OBJ/MTL/SVG: cut machine nave, central dome, anchor city, giant florets, cargo arteries, and material partitions without waiting for Bevy. The `vg_grammar` crate is the Dream Machine authoring layer: semantic solid/void claims with tags compile into flat `vg_csg` brushes or generated CSG tree intent; it supports local frames, oriented claims, deterministic seeded variation, rule composition, and generated gallery chains. Public RealtimeCSG demo/source research points the target away from fragment carving and toward faster polygon classification through boolean trees. A standalone RealtimeCSG C++ P/Invoke bridge now mirrors the managed wrapper surface, verifies a native health cube, extracts generated mesh descriptions, and appends direct native timing records. Current perf pass: `vg_csg` has a fast axis-aligned direct path, cached compiled brush geometry, owned convex splitting, convex containment shortcuts, stable-tree output caching, valid-prefix incremental dirty caching for general convex edits, and report flags for `reused_mesh`, `used_checkpoint`, `checkpoint_rebuild_from`, and `direct_dirty_rebuild`; box candidate edits use the direct builder after an honest dirty baseline showed checkpoint replay is slower without real mesh patching. Known graph-tooling blockers remain repeat-zone feedback, repeat Top outputs, foreach zones, and gizmo nodes.
next_action: Build the first Bevy inspection shell for Rust-side CSG artifacts: load or generate the Dream Machine level mesh, show orbit camera/material groups, and keep dirty edit hooks visible so later mesh-patching work is judged against an actual interactive object rather than isolated timing fixtures.
remotes:
vibegeometry: https://github.com/GameCult/VibeGeometry
geometry_script_fork: https://github.com/GameCult/geometry-script