From cd2506733393454281532404976981c0b7760167 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 15 Apr 2026 09:16:02 +0200 Subject: [PATCH] Add majorSegmentCount and tubeSegmentCount to RuntimeBoxBrushInstance and update buildRuntimeBrush logic --- src/runtime-three/runtime-scene-build.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index cc967782..d9147646 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -130,6 +130,8 @@ export interface RuntimeBoxBrushInstance { id: string; kind: BrushKind; sideCount?: number; + majorSegmentCount?: number; + tubeSegmentCount?: number; visible: boolean; center: Vec3; rotationDegrees: Vec3; @@ -627,7 +629,14 @@ function buildRuntimeBrush( return { id: brush.id, kind: brush.kind, - sideCount: brush.kind === "radialPrism" ? brush.sideCount : undefined, + sideCount: + brush.kind === "radialPrism" || brush.kind === "cone" + ? brush.sideCount + : undefined, + majorSegmentCount: + brush.kind === "torus" ? brush.majorSegmentCount : undefined, + tubeSegmentCount: + brush.kind === "torus" ? brush.tubeSegmentCount : undefined, visible: brush.visible, center: cloneVec3(brush.center), rotationDegrees: cloneVec3(brush.rotationDegrees),