From 3f1a50b1975910fb29f5b9634a8db081bbbca2b2 Mon Sep 17 00:00:00 2001 From: Michael Pearce Date: Tue, 24 Nov 2026 23:17:38 -0800 Subject: [PATCH] (feat) Add the Ridge sculpt brush --- README.md | 5 ++-- src/components/SculptControls.tsx | 7 ++++-- src/components/SculptPointer.tsx | 2 +- src/core/sculpt-mesh.ts | 6 +++-- src/core/types.ts | 2 +- src/docs/assembly-guides.ts | 9 ++++++- tests/e2e/sculpt.spec.ts | 41 +++++++++++++++++++++++++++++++ tests/unit/sculpt-mesh.test.ts | 27 +++++++++++--------- 8 files changed, 78 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index db3530e..a594e00 100644 --- a/README.md +++ b/README.md @@ -495,8 +495,9 @@ your drag, and the surface updates when you release. Select a visible, unlocked part and choose **Sculpt**. Draw builds or removes material, Clay Buildup layers broad strokes, and Inflate/Deflate changes the volume of rounded details. Grab -moves a patch, Crease sharpens a groove or ridge, and Smooth and Flatten clean up the surface. -The brush adds mesh detail locally as needed. Adjust **Detail** to change the density. +moves a patch, Crease carves a groove, Ridge raises and pinches an edge, and Smooth and Flatten +clean up the surface. The brush adds mesh detail locally as needed. Adjust **Detail** to change +the density. - Hold **Alt** to invert an applicable brush and **Shift** for temporary smoothing. - Use **Mask** to protect areas. Hold **Alt** to erase protection or **Shift** to soften it. diff --git a/src/components/SculptControls.tsx b/src/components/SculptControls.tsx index 4ae2ab4..08475c7 100644 --- a/src/components/SculptControls.tsx +++ b/src/components/SculptControls.tsx @@ -10,6 +10,7 @@ const brushes: Record = { smooth: 'Smooth', flatten: 'Flatten', crease: 'Crease', + ridge: 'Ridge', clay: 'Clay Buildup', inflate: 'Inflate/Deflate', mask: 'Mask', @@ -106,7 +107,9 @@ export function SculptControls() { {brush === 'mask' ? 'Drag to paint protection. Hold Alt to erase or Shift to soften.' : 'Drag on the part to sculpt. Hold Shift to smooth.'} - {['draw', 'crease', 'clay', 'inflate'].includes(brush) ? ' Hold Alt to invert.' : ''} + {['draw', 'crease', 'ridge', 'clay', 'inflate'].includes(brush) + ? ' Hold Alt to invert.' + : ''}