concept-collection / mesh-studio
Move Random CAD model button below Open STEP/IGES
Jeremy Magland <jmagland@flatironinstitute.org> committed commit 4b6e89d8362e parent 5e04862 Browse files
2 changed files+15−15
CLAUDE.mdmodified+1−1View file
@@ -48,7 +48,7 @@ src/abcDataset.ts "Random CAD model" source: fetches index.json from
4848 quality slider is a dimensionless fraction independent of model scale — no
4949 bounding-box computation needed. `retessellate` calls `BRepTools.Clean` first
5050 (in a try/catch) so a finer deflection actually refines.
51-- **The "Random CAD model" button** (primary, top of Sources) downloads a real
51+- **The "Random CAD model" button** (primary, below Open STEP/IGES) downloads a real
5252 ABC-dataset STEP file and runs it through `importCadFile` — the quickest
5353 end-to-end check of the CAD import path (needs network + the abc-step-1000
5454 Pages site). The old "Sample STEP" round-trip button was removed 2026-07-09;
src/App.tsxmodified+14−14View file
@@ -196,20 +196,6 @@ function App() {
196196
197197 <section>
198198 <h2>Sources</h2>
199- <button
200- className="primary"
201- onClick={() => void loadRandomAbc()}
202- disabled={busy !== null}
203- title="Download a random CAD model from the first 1000 STEP files of the ABC dataset"
204- >
205- 🎲 Random CAD model
206- </button>
207- <p className="footnote">
208- Random models are drawn from{' '}
209- <a href="https://concept-collection.github.io/abc-step-1000/">abc-step-1000</a>, a
210- rehosted slice of the <a href={ABC_DATASET_URL}>ABC dataset</a> of CAD models (Koch et
211- al., CVPR 2019).
212- </p>
213199 <div className="primitive-grid">
214200 {primitives.map((p) => (
215201 <button
@@ -227,6 +213,20 @@ function App() {
227213 Open STEP/IGES…
228214 </button>
229215 </div>
216+ <button
217+ className="primary"
218+ onClick={() => void loadRandomAbc()}
219+ disabled={busy !== null}
220+ title="Download a random CAD model from the first 1000 STEP files of the ABC dataset"
221+ >
222+ Random CAD model
223+ </button>
224+ <p className="footnote">
225+ Random models are drawn from{' '}
226+ <a href="https://concept-collection.github.io/abc-step-1000/">abc-step-1000</a>, a
227+ rehosted slice of the <a href={ABC_DATASET_URL}>ABC dataset</a> of CAD models (Koch et
228+ al., CVPR 2019).
229+ </p>
230230 <input
231231 ref={fileInputRef}
232232 type="file"