Chao-Yun commited on
Commit
08149ec
·
verified ·
1 Parent(s): c5ac3bf

Deploy I-DevNet side-by-side 3D studio & demo videos linked to HF Model Hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +39 -0
  2. .nojekyll +0 -0
  3. README.md +22 -10
  4. app.js +386 -0
  5. assets/figures/bunny_compare_hausdorff.jpg +3 -0
  6. assets/figures/bunny_dog_kitten_making.jpg +3 -0
  7. assets/figures/bunny_process.jpg +3 -0
  8. assets/figures/compare_other.jpg +3 -0
  9. assets/figures/dog_compare_hausdorff.jpg +3 -0
  10. assets/figures/dog_process.jpg +3 -0
  11. assets/figures/drag_patch.jpg +3 -0
  12. assets/figures/kitten_compare_hausdorff.jpg +3 -0
  13. assets/figures/kitten_process.jpg +3 -0
  14. assets/figures/metric_hausdorff.jpg +3 -0
  15. assets/figures/optimization_process_pencil.jpg +3 -0
  16. assets/figures/patch_hole.jpg +3 -0
  17. assets/figures/patch_model.jpg +3 -0
  18. assets/figures/patch_noise.jpg +3 -0
  19. assets/figures/patch_nonuniform.jpg +3 -0
  20. assets/figures/patch_process.jpg +3 -0
  21. assets/figures/patch_resolutions.jpg +3 -0
  22. assets/figures/plot_opt_process.png +3 -0
  23. assets/figures/post_process_vert.jpg +3 -0
  24. assets/figures/region_conv.jpg +0 -0
  25. assets/figures/sample_inverse.jpg +3 -0
  26. assets/figures/sample_resolution.jpg +3 -0
  27. assets/figures/smooth_patch.jpg +3 -0
  28. assets/figures/tang_strip_patch.jpg +3 -0
  29. assets/figures/teaser.jpg +3 -0
  30. assets/renders/bunny_ours_final.png +3 -0
  31. assets/renders/bunny_zhao2023.png +3 -0
  32. assets/renders/dog_ours_final.png +3 -0
  33. assets/renders/dog_zhao2023.png +3 -0
  34. assets/renders/kitten_ours_final.png +3 -0
  35. assets/renders/kitten_zhao2023.png +3 -0
  36. assets/studio/manifest.json +61 -0
  37. assets/studio/models/bunny.json +0 -0
  38. assets/studio/models/dog.json +0 -0
  39. assets/studio/models/kitten.json +0 -0
  40. assets/studio/patches/cad_hole.json +0 -0
  41. assets/studio/patches/cad_patch.json +0 -0
  42. assets/studio/patches/cyclide_nonuniform.json +0 -0
  43. assets/studio/patches/einstein.json +0 -0
  44. assets/studio/patches/hole_array.json +0 -0
  45. assets/studio/patches/noise_1_0.json +0 -0
  46. assets/studio/patches/patch_811v.json +0 -0
  47. assets/studio/patches/smooth_1.json +0 -0
  48. assets/videos/drag_patch.mp4 +3 -0
  49. assets/videos/drag_patch_poster.jpg +0 -0
  50. assets/videos/full_paper_demo.mp4 +3 -0
.gitattributes CHANGED
@@ -33,3 +33,42 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/figures/bunny_compare_hausdorff.jpg filter=lfs diff=lfs merge=lfs -text
37
+ assets/figures/bunny_dog_kitten_making.jpg filter=lfs diff=lfs merge=lfs -text
38
+ assets/figures/bunny_process.jpg filter=lfs diff=lfs merge=lfs -text
39
+ assets/figures/compare_other.jpg filter=lfs diff=lfs merge=lfs -text
40
+ assets/figures/dog_compare_hausdorff.jpg filter=lfs diff=lfs merge=lfs -text
41
+ assets/figures/dog_process.jpg filter=lfs diff=lfs merge=lfs -text
42
+ assets/figures/drag_patch.jpg filter=lfs diff=lfs merge=lfs -text
43
+ assets/figures/kitten_compare_hausdorff.jpg filter=lfs diff=lfs merge=lfs -text
44
+ assets/figures/kitten_process.jpg filter=lfs diff=lfs merge=lfs -text
45
+ assets/figures/metric_hausdorff.jpg filter=lfs diff=lfs merge=lfs -text
46
+ assets/figures/optimization_process_pencil.jpg filter=lfs diff=lfs merge=lfs -text
47
+ assets/figures/patch_hole.jpg filter=lfs diff=lfs merge=lfs -text
48
+ assets/figures/patch_model.jpg filter=lfs diff=lfs merge=lfs -text
49
+ assets/figures/patch_noise.jpg filter=lfs diff=lfs merge=lfs -text
50
+ assets/figures/patch_nonuniform.jpg filter=lfs diff=lfs merge=lfs -text
51
+ assets/figures/patch_process.jpg filter=lfs diff=lfs merge=lfs -text
52
+ assets/figures/patch_resolutions.jpg filter=lfs diff=lfs merge=lfs -text
53
+ assets/figures/plot_opt_process.png filter=lfs diff=lfs merge=lfs -text
54
+ assets/figures/post_process_vert.jpg filter=lfs diff=lfs merge=lfs -text
55
+ assets/figures/sample_inverse.jpg filter=lfs diff=lfs merge=lfs -text
56
+ assets/figures/sample_resolution.jpg filter=lfs diff=lfs merge=lfs -text
57
+ assets/figures/smooth_patch.jpg filter=lfs diff=lfs merge=lfs -text
58
+ assets/figures/tang_strip_patch.jpg filter=lfs diff=lfs merge=lfs -text
59
+ assets/figures/teaser.jpg filter=lfs diff=lfs merge=lfs -text
60
+ assets/renders/bunny_ours_final.png filter=lfs diff=lfs merge=lfs -text
61
+ assets/renders/bunny_zhao2023.png filter=lfs diff=lfs merge=lfs -text
62
+ assets/renders/dog_ours_final.png filter=lfs diff=lfs merge=lfs -text
63
+ assets/renders/dog_zhao2023.png filter=lfs diff=lfs merge=lfs -text
64
+ assets/renders/kitten_ours_final.png filter=lfs diff=lfs merge=lfs -text
65
+ assets/renders/kitten_zhao2023.png filter=lfs diff=lfs merge=lfs -text
66
+ assets/videos/drag_patch.mp4 filter=lfs diff=lfs merge=lfs -text
67
+ assets/videos/full_paper_demo.mp4 filter=lfs diff=lfs merge=lfs -text
68
+ assets/videos/interactive_cut.mp4 filter=lfs diff=lfs merge=lfs -text
69
+ assets/videos/interactive_cut_poster.jpg filter=lfs diff=lfs merge=lfs -text
70
+ assets/videos/model_comparison.mp4 filter=lfs diff=lfs merge=lfs -text
71
+ assets/videos/papercraft_making.mp4 filter=lfs diff=lfs merge=lfs -text
72
+ assets/videos/real_bunny_360.mp4 filter=lfs diff=lfs merge=lfs -text
73
+ assets/videos/real_dog_360.mp4 filter=lfs diff=lfs merge=lfs -text
74
+ assets/videos/real_kitten_360.mp4 filter=lfs diff=lfs merge=lfs -text
.nojekyll ADDED
File without changes
README.md CHANGED
@@ -1,10 +1,22 @@
1
- ---
2
- title: I DevNet
3
- emoji: 💻
4
- colorFrom: yellow
5
- colorTo: blue
6
- sdk: static
7
- pinned: false
8
- ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: I-DevNet — Interactive Developable Surface Design
3
+ emoji: 📐
4
+ colorFrom: blue
5
+ colorTo: gray
6
+ sdk: static
7
+ app_file: index.html
8
+ pinned: false
9
+ license: apache-2.0
10
+ models:
11
+ - Chao-Yun/I-DevNet
12
+ ---
13
+
14
+ # I-DevNet — Live Interactive 3D Web Studio & Project Page
15
+
16
+ Official interactive project page and Blender-free browser 3D studio for *Interactive Design of Developable Surfaces by Patch-based Learning* (Computer-Aided Design, 2025).
17
+
18
+ - **Model Hub:** [Chao-Yun/I-DevNet](https://huggingface.co/Chao-Yun/I-DevNet)
19
+ - **GitHub Repository:** [chaoyunwang/I-DevNet](https://github.com/chaoyunwang/I-DevNet)
20
+ - **Direct Space URL:** [https://chao-yun-i-devnet.static.hf.space/](https://chao-yun-i-devnet.static.hf.space/)
21
+
22
+ The interactive 3D Studio streams `coarse_model.onnx` and `fine_model.onnx` directly from [Chao-Yun/I-DevNet](https://huggingface.co/Chao-Yun/I-DevNet) and runs real-time inference inside your browser via WebAssembly (`onnxruntime-web` + `Three.js`) in a synchronized side-by-side Input vs. Output viewport.
app.js ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (() => {
2
+ const toastEl = document.getElementById("copy-toast");
3
+
4
+ function showToast(msg) {
5
+ if (!toastEl) return;
6
+ toastEl.textContent = msg;
7
+ setTimeout(() => {
8
+ if (toastEl.textContent === msg) toastEl.textContent = "";
9
+ }, 2200);
10
+ }
11
+
12
+ async function copyText(text) {
13
+ try {
14
+ await navigator.clipboard.writeText(text);
15
+ } catch {
16
+ const ta = document.createElement("textarea");
17
+ ta.value = text;
18
+ document.body.appendChild(ta);
19
+ ta.select();
20
+ document.execCommand("copy");
21
+ document.body.removeChild(ta);
22
+ }
23
+ showToast("Copied to clipboard");
24
+ }
25
+
26
+ document.querySelectorAll("[data-copy-target]").forEach((btn) => {
27
+ btn.addEventListener("click", () => {
28
+ const target = document.getElementById(btn.dataset.copyTarget);
29
+ if (target) copyText(target.textContent.trim());
30
+ });
31
+ });
32
+
33
+ // 1. Video switcher
34
+ const VIDEO_DATA = {
35
+ full: {
36
+ src: "assets/videos/full_paper_demo.mp4",
37
+ poster: "assets/videos/full_paper_demo_poster.jpg",
38
+ title: "Full CAD 2025 Supplemental Video Walkthrough",
39
+ desc: "Complete narrated paper video showcasing patch developability formulation, live interactive Blender drag design, human-in-the-loop seam cutting, quantitative comparisons, and real cardstock fabrication.",
40
+ },
41
+ drag: {
42
+ src: "assets/videos/drag_patch.mp4",
43
+ poster: "assets/videos/drag_patch_poster.jpg",
44
+ title: "Real-Time Optimization under Drag-and-Drop Deformation (Figs. 2 & 7)",
45
+ desc: "As the user drags control points or lattice handles on the irregular triangular patch, cached bidirectional UV sampling maps the surface to a 64x64 masked geometry image and back after coarse-to-fine ResUNet inference.",
46
+ },
47
+ cut: {
48
+ src: "assets/videos/interactive_cut.mp4",
49
+ poster: "assets/videos/interactive_cut_poster.jpg",
50
+ title: "Interactive Piecewise Developable Approximation via Seam Cutting (Fig. 14)",
51
+ desc: "Users mark or sketch seam strokes interactively on complex 3D surfaces; only affected patches are incrementally re-parameterized, optimized in parallel, fused across seams, and post-processed.",
52
+ },
53
+ compare: {
54
+ src: "assets/videos/model_comparison.mp4",
55
+ poster: "assets/videos/model_comparison_poster.jpg",
56
+ title: "360-Degree Turntable Comparison: Bunny, Dog, and Kitten (Fig. 17)",
57
+ desc: "Full visual comparison against Ion et al. (2020), Zhao et al. (2022), and Zhao et al. (2023), showing tighter shape preservation with significantly fewer developable patches.",
58
+ },
59
+ craft: {
60
+ src: "assets/videos/papercraft_making.mp4",
61
+ poster: "assets/videos/papercraft_making_poster.jpg",
62
+ title: "Physical Papercraft Printing, Cutting & Assembly (Fig. 18)",
63
+ desc: "Optimized patches unfold isometrically into planar A4 cutting sheets with matched seam IDs, producing lifelike physical cardstock models.",
64
+ },
65
+ };
66
+
67
+ const videoEl = document.getElementById("demo-video");
68
+ const videoSrc = document.getElementById("demo-video-src");
69
+ const videoTitle = document.getElementById("video-title");
70
+ const videoDesc = document.getElementById("video-desc");
71
+
72
+ document.querySelectorAll("[data-video]").forEach((btn) => {
73
+ btn.addEventListener("click", () => {
74
+ document.querySelectorAll("[data-video]").forEach((b) => b.classList.remove("active"));
75
+ btn.classList.add("active");
76
+ const info = VIDEO_DATA[btn.dataset.video];
77
+ if (!info || !videoEl) return;
78
+ videoEl.pause();
79
+ videoEl.poster = info.poster;
80
+ videoSrc.src = info.src;
81
+ videoEl.load();
82
+ videoTitle.textContent = info.title;
83
+ videoDesc.textContent = info.desc;
84
+ });
85
+ });
86
+
87
+ // 2. Method switcher
88
+ const METHOD_DATA = {
89
+ pipeline: {
90
+ img: "assets/figures/patch_process.jpg",
91
+ title: "Two-Stage Coarse-to-Fine Patch Pipeline (Section 3)",
92
+ desc: "Any surface patch with arbitrary boundary shape (or interior holes) is parameterized with angle-preserving LSCM UV coordinates and resampled into a (64, 64, 4) normalized masked geometry image. Coarse and fine ResUNet stages eliminate Gaussian curvature before barycentric inverse sampling reconstructs the triangular mesh.",
93
+ },
94
+ sampling: {
95
+ img: "assets/figures/sample_inverse.jpg",
96
+ title: "Forward UV Sampling & Inverse Barycentric Reconstruction (Fig. 3)",
97
+ desc: "Points inside triangular mesh faces map onto regular 64x64 pixels via barycentric interpolation, dilated along the boundary to prevent clipping, then inverted back onto arbitrary triangle vertices at sub-millisecond cost.",
98
+ },
99
+ stencils: {
100
+ img: "assets/figures/region_conv.jpg",
101
+ title: "Masked Region, Fairness & Gaussian Curvature Stencils (Eqs. 4-6)",
102
+ desc: "A zero-padded exterior border combined with 5-point cross fairness erosion (W_fair) and 7-point hexagonal Gaussian curvature erosion (W_gc) constrains masked CNN gradients purely inside valid patch pixels.",
103
+ },
104
+ postproc: {
105
+ img: "assets/figures/post_process_vert.jpg",
106
+ title: "Two-Stage Numerical Post-Processing (Section 3.5)",
107
+ desc: "Stage 1 optimizes slit boundary vertices and their 1-ring neighbors with analytical L-BFGS-B gradients; Stage 2 alternates global/local interior refinement (Algorithm 1) until 97%-100% of interior vertices satisfy |K| <= 5e-4 rad.",
108
+ },
109
+ motivation: {
110
+ img: "assets/figures/tang_strip_patch.jpg",
111
+ title: "Motivation: Spline-Based vs. Patch-Based Optimization (Fig. 1)",
112
+ desc: "Compared against spline-strip methods, directly learning developability over arbitrary surface patches enables local surface control with substantially tighter fidelity to reference geometry.",
113
+ },
114
+ };
115
+
116
+ const methodImg = document.getElementById("method-img");
117
+ const methodTitle = document.getElementById("method-title");
118
+ const methodDesc = document.getElementById("method-desc");
119
+
120
+ document.querySelectorAll("[data-method]").forEach((btn) => {
121
+ btn.addEventListener("click", () => {
122
+ document.querySelectorAll("[data-method]").forEach((b) => b.classList.remove("active"));
123
+ btn.classList.add("active");
124
+ const info = METHOD_DATA[btn.dataset.method];
125
+ if (!info) return;
126
+ methodImg.src = info.img;
127
+ methodTitle.textContent = info.title;
128
+ methodDesc.textContent = info.desc;
129
+ });
130
+ });
131
+
132
+ // 3. Before/After model slider
133
+ const SLIDER_MODELS = {
134
+ bunny: {
135
+ before: "assets/renders/bunny_zhao2023.png",
136
+ after: "assets/renders/bunny_ours_final.png",
137
+ stat: "Ours: 6 patches, d_H-a = 0.382% | Zhao2023: 11 patches (paper), 0.729%",
138
+ },
139
+ dog: {
140
+ before: "assets/renders/dog_zhao2023.png",
141
+ after: "assets/renders/dog_ours_final.png",
142
+ stat: "Ours: 10 patches, d_H-a = 0.485% | Zhao2023: 11 patches (paper), 0.843%",
143
+ },
144
+ kitten: {
145
+ before: "assets/renders/kitten_zhao2023.png",
146
+ after: "assets/renders/kitten_ours_final.png",
147
+ stat: "Ours: 11 patches, d_H-a = 0.323% | Baseline: Zhao et al. (2023) visual render",
148
+ },
149
+ };
150
+
151
+ const baWrapper = document.getElementById("ba-wrapper");
152
+ const baClip = document.getElementById("ba-before-clip");
153
+ const baDivider = document.getElementById("ba-divider");
154
+ const baRange = document.getElementById("ba-range");
155
+ const baBefore = document.getElementById("ba-before");
156
+ const baAfter = document.getElementById("ba-after");
157
+ const sliderStat = document.getElementById("slider-stat");
158
+
159
+ function setSliderPct(pct) {
160
+ const p = Math.max(0, Math.min(100, pct));
161
+ baClip.style.clipPath = `inset(0 ${100 - p}% 0 0)`;
162
+ baDivider.style.left = `${p}%`;
163
+ baRange.value = String(Math.round(p));
164
+ }
165
+
166
+ if (baRange && baWrapper) {
167
+ baRange.addEventListener("input", (e) => setSliderPct(Number(e.target.value)));
168
+ let dragging = false;
169
+ const updateFromClientX = (clientX) => {
170
+ const rect = baWrapper.getBoundingClientRect();
171
+ setSliderPct(((clientX - rect.left) / rect.width) * 100);
172
+ };
173
+ baWrapper.addEventListener("pointerdown", (e) => {
174
+ dragging = true;
175
+ updateFromClientX(e.clientX);
176
+ });
177
+ window.addEventListener("pointermove", (e) => {
178
+ if (dragging) updateFromClientX(e.clientX);
179
+ });
180
+ window.addEventListener("pointerup", () => {
181
+ dragging = false;
182
+ });
183
+ }
184
+
185
+ document.querySelectorAll("[data-slider-model]").forEach((btn) => {
186
+ btn.addEventListener("click", () => {
187
+ document.querySelectorAll("[data-slider-model]").forEach((b) => b.classList.remove("active"));
188
+ btn.classList.add("active");
189
+ const info = SLIDER_MODELS[btn.dataset.sliderModel];
190
+ if (!info) return;
191
+ baBefore.src = info.before;
192
+ baAfter.src = info.after;
193
+ sliderStat.textContent = info.stat;
194
+ });
195
+ });
196
+
197
+ // 4. Multi-model figure gallery
198
+ const MFIG_DATA = {
199
+ compare_other: {
200
+ img: "assets/figures/compare_other.jpg",
201
+ cap: "Visual comparison against Ion et al. (2020), Zhao et al. (2022), and Zhao et al. (2023) on Bunny, Dog, and Kitten (Fig. 17).",
202
+ },
203
+ dog_process: {
204
+ img: "assets/figures/dog_process.jpg",
205
+ cap: "Fig. 15: Step-by-step optimization on Dog (Input -> Coarse+Fine Fusion -> Slit Boundary -> Interior Refinement -> Patch Merging).",
206
+ },
207
+ plot_opt: {
208
+ img: "assets/figures/plot_opt_process.png",
209
+ cap: "Fig. 16: Mean |K| reduction vs. bilateral Hausdorff distance evolution across pipeline stages on Bunny, Dog, and Kitten.",
210
+ },
211
+ metric_hausdorff: {
212
+ img: "assets/figures/metric_hausdorff.jpg",
213
+ cap: "Fig. 5: Comparison of bilateral Hausdorff metrics d_H, d_{H-99}, and d_{H-a} on Smooth vs. Zhao et al. (2023) Bunny.",
214
+ },
215
+ bunny_process: {
216
+ img: "assets/figures/bunny_process.jpg",
217
+ cap: "Appendix Fig. 20: Full optimization stages, Gaussian curvature maps, and Hausdorff error maps on Bunny.",
218
+ },
219
+ kitten_process: {
220
+ img: "assets/figures/kitten_process.jpg",
221
+ cap: "Appendix Fig. 21: Full optimization stages, Gaussian curvature maps, and Hausdorff error maps on Kitten.",
222
+ },
223
+ haus_app: {
224
+ triple: true,
225
+ cap: "Appendix Figs. 22-24: Per-vertex bilateral Hausdorff error heatmaps across baselines vs. Ours on Bunny, Dog, and Kitten.",
226
+ },
227
+ };
228
+
229
+ const mfigImg = document.getElementById("mfig-img");
230
+ const mfigTriple = document.getElementById("mfig-triple");
231
+ const mfigCap = document.getElementById("mfig-cap");
232
+
233
+ document.querySelectorAll("[data-mfig]").forEach((btn) => {
234
+ btn.addEventListener("click", () => {
235
+ document.querySelectorAll("[data-mfig]").forEach((b) => b.classList.remove("active"));
236
+ btn.classList.add("active");
237
+ const info = MFIG_DATA[btn.dataset.mfig];
238
+ if (!info) return;
239
+ if (info.triple) {
240
+ mfigImg.classList.add("hidden");
241
+ mfigTriple.classList.remove("hidden");
242
+ } else {
243
+ mfigTriple.classList.add("hidden");
244
+ mfigImg.classList.remove("hidden");
245
+ mfigImg.src = info.img;
246
+ }
247
+ mfigCap.textContent = info.cap;
248
+ });
249
+ });
250
+
251
+ // 5. Patch robustness gallery
252
+ const PFIG_DATA = {
253
+ drag: {
254
+ img: "assets/figures/drag_patch.jpg",
255
+ cap: "Fig. 7: Real-time drag-and-drop sequence preserving developability across four continuous control-point deformations.",
256
+ },
257
+ smooth: {
258
+ img: "assets/figures/smooth_patch.jpg",
259
+ cap: "Fig. 8: Smooth free-form patches before and after neural developability optimization (curvature reduction 66.6%-92.8%).",
260
+ },
261
+ model: {
262
+ img: "assets/figures/patch_model.jpg",
263
+ cap: "Fig. 9: Complex patches segmented from Bunny, Rabbit, and Einstein models (-99.68% curvature reduction on Einstein).",
264
+ },
265
+ resolution: {
266
+ img: "assets/figures/patch_resolutions.jpg",
267
+ cap: "Fig. 10: Resolution independence across meshes with 500 to 4,096 vertices using fixed 64x64 grid inference.",
268
+ },
269
+ hole: {
270
+ img: "assets/figures/patch_hole.jpg",
271
+ cap: "Fig. 11: Patches containing arbitrary interior holes, arrays, and non-trivial cutouts natively handled by UV masking.",
272
+ },
273
+ nonuniform: {
274
+ img: "assets/figures/patch_nonuniform.jpg",
275
+ cap: "Fig. 12: Robust optimization across uniform and severely non-uniform triangulations (cyclide benchmark).",
276
+ },
277
+ noise: {
278
+ img: "assets/figures/patch_noise.jpg",
279
+ cap: "Fig. 13: Stability under N(0.5%), N(1.0%), and N(2.0%) Gaussian vertex noise (up to 99.21% curvature reduction).",
280
+ },
281
+ gridres: {
282
+ img: "assets/figures/sample_resolution.jpg",
283
+ cap: "Appendix Fig. 19: Bidirectional UV grid reconstruction precision at 32x32 (0.036%), 64x64 (0.017%), and 128x128 (0.008%).",
284
+ },
285
+ };
286
+
287
+ const pfigImg = document.getElementById("pfig-img");
288
+ const pfigCap = document.getElementById("pfig-cap");
289
+ document.querySelectorAll("[data-pfig]").forEach((btn) => {
290
+ btn.addEventListener("click", () => {
291
+ document.querySelectorAll("[data-pfig]").forEach((b) => b.classList.remove("active"));
292
+ btn.classList.add("active");
293
+ const info = PFIG_DATA[btn.dataset.pfig];
294
+ if (!info) return;
295
+ pfigImg.src = info.img;
296
+ pfigCap.textContent = info.cap;
297
+ });
298
+ });
299
+
300
+ // 6. CLI snippets switcher
301
+ const CODE_DATA = {
302
+ setup: `git clone https://github.com/chaoyunwang/I-DevNet.git
303
+ cd I-DevNet
304
+ conda create -n idevnet python=3.10 -y && conda activate idevnet
305
+ pip install -e ".[full]"
306
+ python -m unittest discover -s tests -v`,
307
+ infer: `# Single patch (.obj or .npy) + Stage 2 interior post-processing
308
+ python scripts/optimize_patch.py \\
309
+ --input examples/patches/patch_811v.obj \\
310
+ --output outputs/patch_811v_opt.obj \\
311
+ --iters 2 --postprocess
312
+
313
+ # Segmented multi-patch mesh + seam JSON + A4 papercraft PDF
314
+ python scripts/optimize_mesh.py \\
315
+ --input examples/models/bunny/seg_input.obj \\
316
+ --seams examples/models/bunny/seg_seams.json \\
317
+ --output outputs/bunny_opt.obj --iters 2 --slit-postprocess --interior-postprocess
318
+ python scripts/export_papercraft_pdf.py --input examples/models/bunny/ours_final.obj --output outputs/bunny.pdf`,
319
+ eval: `# Table 1 quantitative reproduction (Bunny, Dog, Kitten)
320
+ python scripts/reproduce_table1.py --output-json outputs/table1.json
321
+
322
+ # End-to-end segmented pipeline (Bunny, Dog, Kitten from scratch)
323
+ python scripts/verify_full_pipeline.py --models bunny,dog,kitten
324
+
325
+ # All 25 Section 4.2 paper patches + UV sampling error
326
+ python scripts/verify_paper_patches.py
327
+ python scripts/eval_sampling_error.py`,
328
+ train: `# Download stratified real dataset into datasets/real_sample_subset (see docs/CLOUD_DRIVE_ASSETS.md)
329
+ python scripts/run_training_curriculum.py \\
330
+ --data-dir datasets/real_sample_subset \\
331
+ --output-dir runs/full_curriculum
332
+
333
+ # Or 1-epoch smoke curriculum on included examples/grid_samples/
334
+ python scripts/run_training_curriculum.py \\
335
+ --data-dir examples/grid_samples --output-dir runs/smoke \\
336
+ --stages stage1,stage5,opt2,stage6,export --epochs-override 1 --batch-size 2`,
337
+ blender: `# 1. Zip blender_addons/patch_dev_addon/ (or install directly from repo)
338
+ # 2. In Blender 3.6 / 4.x / 5.x: Edit -> Preferences -> Add-ons -> Install
339
+ # 3. Install Blender Python dependencies if needed:
340
+ "<BLENDER_PYTHON>" -m pip install numpy scipy onnxruntime pillow joblib
341
+
342
+ # 4. Run full headless operator verification inside Blender:
343
+ blender --background --python scripts/verify_blender_addon.py -- --output-json outputs/blender_verify.json`,
344
+ studio: `# Launch the Blender-Free Interactive 3D Web Studio (requires only Python + browser)
345
+ python scripts/web_studio.py --port 8080
346
+
347
+ # Includes live ONNX patch sculpting, Stage 2 SciPy interior refine,
348
+ # segmented 3D model inspector, and A4 unfolded papercraft PDF export.`,
349
+ };
350
+
351
+ const codeEl = document.getElementById("code-snippet");
352
+ const copyCodeBtn = document.getElementById("copy-code-btn");
353
+ document.querySelectorAll("[data-code]").forEach((btn) => {
354
+ btn.addEventListener("click", () => {
355
+ document.querySelectorAll("[data-code]").forEach((b) => b.classList.remove("active"));
356
+ btn.classList.add("active");
357
+ if (codeEl) codeEl.textContent = CODE_DATA[btn.dataset.code] || "";
358
+ });
359
+ });
360
+ if (copyCodeBtn && codeEl) {
361
+ copyCodeBtn.addEventListener("click", () => copyText(codeEl.textContent));
362
+ }
363
+
364
+ // 7. Lightbox modal for all figures
365
+ const lightbox = document.getElementById("lightbox");
366
+ const lightboxImg = document.getElementById("lightbox-img");
367
+ const lightboxClose = document.getElementById("lightbox-close");
368
+
369
+ document.querySelectorAll(".zoomable").forEach((img) => {
370
+ img.addEventListener("click", () => {
371
+ lightboxImg.src = img.src;
372
+ lightboxImg.alt = img.alt;
373
+ lightbox.classList.remove("hidden");
374
+ });
375
+ });
376
+ const closeBox = () => lightbox && lightbox.classList.add("hidden");
377
+ if (lightboxClose) lightboxClose.addEventListener("click", closeBox);
378
+ if (lightbox) {
379
+ lightbox.addEventListener("click", (e) => {
380
+ if (e.target === lightbox) closeBox();
381
+ });
382
+ window.addEventListener("keydown", (e) => {
383
+ if (e.key === "Escape") closeBox();
384
+ });
385
+ }
386
+ })();
assets/figures/bunny_compare_hausdorff.jpg ADDED

Git LFS Details

  • SHA256: ccc425cf4ff84812d1c7646ab9675432923e765a098c1d0466e2d0135d142380
  • Pointer size: 131 Bytes
  • Size of remote file: 233 kB
assets/figures/bunny_dog_kitten_making.jpg ADDED

Git LFS Details

  • SHA256: be90c7e2165db89877be97444c693cce9915b2a7e27397b46e05c4dcf1b08e29
  • Pointer size: 131 Bytes
  • Size of remote file: 363 kB
assets/figures/bunny_process.jpg ADDED

Git LFS Details

  • SHA256: 2b7bd44cf785b31f56522ee1a2851005f38a02991840059a26323851876354a3
  • Pointer size: 131 Bytes
  • Size of remote file: 275 kB
assets/figures/compare_other.jpg ADDED

Git LFS Details

  • SHA256: 49fad913dc3562f26392515f282693fd1e07fcdd61dca606059456227f0dbc5c
  • Pointer size: 131 Bytes
  • Size of remote file: 233 kB
assets/figures/dog_compare_hausdorff.jpg ADDED

Git LFS Details

  • SHA256: d12885340f51f928fe0a00bd5d510c78d3eaceb2cb6c48008859166c262163d9
  • Pointer size: 131 Bytes
  • Size of remote file: 201 kB
assets/figures/dog_process.jpg ADDED

Git LFS Details

  • SHA256: 324a2db563a4cec10a2b982ea073fd158173a805715d795ff9f91c54123f7ddd
  • Pointer size: 131 Bytes
  • Size of remote file: 267 kB
assets/figures/drag_patch.jpg ADDED

Git LFS Details

  • SHA256: 02e73ab4032f2e4817c2ccb5c33be668922c72a863d46ec1f9fc29c6b9219b09
  • Pointer size: 131 Bytes
  • Size of remote file: 281 kB
assets/figures/kitten_compare_hausdorff.jpg ADDED

Git LFS Details

  • SHA256: 6987f5f620adc74f7d100a26c512807bf23bdb414341859c4c99efda7363b900
  • Pointer size: 131 Bytes
  • Size of remote file: 294 kB
assets/figures/kitten_process.jpg ADDED

Git LFS Details

  • SHA256: 541aad54cf711005be8354802fd209a37cb08cdcede5d8cd784f5b53e6994852
  • Pointer size: 131 Bytes
  • Size of remote file: 310 kB
assets/figures/metric_hausdorff.jpg ADDED

Git LFS Details

  • SHA256: fc0a95496cddbd1058cbbbef3f2230b96864737139bb1845ac4a0c6dd55746e1
  • Pointer size: 131 Bytes
  • Size of remote file: 250 kB
assets/figures/optimization_process_pencil.jpg ADDED

Git LFS Details

  • SHA256: 129ad3726dd01e3eac9b2f0ecce95b4b2c3df862a260a76f1bccee536596f6a2
  • Pointer size: 131 Bytes
  • Size of remote file: 194 kB
assets/figures/patch_hole.jpg ADDED

Git LFS Details

  • SHA256: acf3b2fcb1fa1e042beb492051d4c3dcd0f654d4257b04d58ef61836d2cbd42f
  • Pointer size: 131 Bytes
  • Size of remote file: 385 kB
assets/figures/patch_model.jpg ADDED

Git LFS Details

  • SHA256: 2e3e8b62d7475a60000fabe0aa52d59a5a3315cef42b756a5443a138fc3b663a
  • Pointer size: 131 Bytes
  • Size of remote file: 299 kB
assets/figures/patch_noise.jpg ADDED

Git LFS Details

  • SHA256: 4e6a650c48c7e279e8806a3dfc6420f02932fcb45439e8d513f4410483e245c8
  • Pointer size: 131 Bytes
  • Size of remote file: 399 kB
assets/figures/patch_nonuniform.jpg ADDED

Git LFS Details

  • SHA256: 008636301996a3b6d67a2f2e52de3da7a8024645384a94b03aca98e4f9ece5fe
  • Pointer size: 131 Bytes
  • Size of remote file: 293 kB
assets/figures/patch_process.jpg ADDED

Git LFS Details

  • SHA256: ad44f4e05ffe4f0cd05ed56833393bd3b119f849e4d0ea412bc8db1d15f015f6
  • Pointer size: 131 Bytes
  • Size of remote file: 183 kB
assets/figures/patch_resolutions.jpg ADDED

Git LFS Details

  • SHA256: 69c4a473d32abbffd70bfb165ec37bd8ce4c141dc6dc6ef9134be8be7a098b98
  • Pointer size: 131 Bytes
  • Size of remote file: 358 kB
assets/figures/plot_opt_process.png ADDED

Git LFS Details

  • SHA256: 39415b44b4b208c3b3afe4fb508220254909ee83454a800c3aac0d31d57b3f99
  • Pointer size: 131 Bytes
  • Size of remote file: 409 kB
assets/figures/post_process_vert.jpg ADDED

Git LFS Details

  • SHA256: b818aa5ad40e47197bfd21861ea4335a9bf6ecaaf6d887c6a1cea4db8f896ffb
  • Pointer size: 131 Bytes
  • Size of remote file: 214 kB
assets/figures/region_conv.jpg ADDED
assets/figures/sample_inverse.jpg ADDED

Git LFS Details

  • SHA256: 8bf7ddc85a15f5facae4937db88135f293c18c9b998b58d9e7bb5112ec32fa81
  • Pointer size: 131 Bytes
  • Size of remote file: 611 kB
assets/figures/sample_resolution.jpg ADDED

Git LFS Details

  • SHA256: 583713a7efaeb2bcb83d6edaa076da1845189c8048797df798d629cab2b1476e
  • Pointer size: 131 Bytes
  • Size of remote file: 292 kB
assets/figures/smooth_patch.jpg ADDED

Git LFS Details

  • SHA256: b7fc80e7616d737937d121c12ddcb754523845868ec9d9bdddda1f38d28d1493
  • Pointer size: 131 Bytes
  • Size of remote file: 322 kB
assets/figures/tang_strip_patch.jpg ADDED

Git LFS Details

  • SHA256: 734c1cd5853c1916faf96ba5a6500bbde5facd4ae36c0587a619068e0f027d59
  • Pointer size: 131 Bytes
  • Size of remote file: 146 kB
assets/figures/teaser.jpg ADDED

Git LFS Details

  • SHA256: 86b1b530b502beea4becdde9b4a04ad596da5083c16816b5e1d896c34df1ef09
  • Pointer size: 131 Bytes
  • Size of remote file: 134 kB
assets/renders/bunny_ours_final.png ADDED

Git LFS Details

  • SHA256: ab1ee09bc4998c5437c071f06d4e39ad3c7e402665dbf6bb46b6da8daa5b2532
  • Pointer size: 131 Bytes
  • Size of remote file: 267 kB
assets/renders/bunny_zhao2023.png ADDED

Git LFS Details

  • SHA256: d420273f9bece1034d4e500341e1650ed852efb517faca85a880a09a625bfe8e
  • Pointer size: 131 Bytes
  • Size of remote file: 242 kB
assets/renders/dog_ours_final.png ADDED

Git LFS Details

  • SHA256: 45eeab2bc37a26dda2a88b27612d57f768d321e5f43571577fe079ef5783a449
  • Pointer size: 131 Bytes
  • Size of remote file: 356 kB
assets/renders/dog_zhao2023.png ADDED

Git LFS Details

  • SHA256: 36d78efd18428651665a5828e27f15bd99c87d76742a3a059ca26f78c392b98c
  • Pointer size: 131 Bytes
  • Size of remote file: 343 kB
assets/renders/kitten_ours_final.png ADDED

Git LFS Details

  • SHA256: 480db5e9ebceb475f4dd618dedce2f2c0ffaeb270dd990752a4246aa682ce1b8
  • Pointer size: 131 Bytes
  • Size of remote file: 363 kB
assets/renders/kitten_zhao2023.png ADDED

Git LFS Details

  • SHA256: 79690d337a228e61cb2fa37af7255e98fe88d558fc933451140006a1d80ad49c
  • Pointer size: 131 Bytes
  • Size of remote file: 341 kB
assets/studio/manifest.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "patches": [
3
+ {
4
+ "name": "patch_811v",
5
+ "label": "Freeform Saddle (811v)",
6
+ "file": "patches/patch_811v.json"
7
+ },
8
+ {
9
+ "name": "cad_patch",
10
+ "label": "CAD Panel (Double-Curved)",
11
+ "file": "patches/cad_patch.json"
12
+ },
13
+ {
14
+ "name": "cad_hole",
15
+ "label": "CAD Panel w/ Cutout Hole",
16
+ "file": "patches/cad_hole.json"
17
+ },
18
+ {
19
+ "name": "einstein",
20
+ "label": "Masked Relief Patch",
21
+ "file": "patches/einstein.json"
22
+ },
23
+ {
24
+ "name": "smooth_1",
25
+ "label": "Smooth Patch (Fig. 8)",
26
+ "file": "patches/smooth_1.json"
27
+ },
28
+ {
29
+ "name": "hole_array",
30
+ "label": "Perforated Array (Fig. 11)",
31
+ "file": "patches/hole_array.json"
32
+ },
33
+ {
34
+ "name": "cyclide_nonuniform",
35
+ "label": "Non-Uniform Cyclide (Fig. 12)",
36
+ "file": "patches/cyclide_nonuniform.json"
37
+ },
38
+ {
39
+ "name": "noise_1_0",
40
+ "label": "Noisy Patch 1.0% (Fig. 13)",
41
+ "file": "patches/noise_1_0.json"
42
+ }
43
+ ],
44
+ "models": [
45
+ {
46
+ "name": "bunny",
47
+ "title": "Stanford Bunny (Table 1)",
48
+ "file": "models/bunny.json"
49
+ },
50
+ {
51
+ "name": "dog",
52
+ "title": "Dog Sculpture (Table 1)",
53
+ "file": "models/dog.json"
54
+ },
55
+ {
56
+ "name": "kitten",
57
+ "title": "Kitten Sculpture (Table 1)",
58
+ "file": "models/kitten.json"
59
+ }
60
+ ]
61
+ }
assets/studio/models/bunny.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/models/dog.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/models/kitten.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/cad_hole.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/cad_patch.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/cyclide_nonuniform.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/einstein.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/hole_array.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/noise_1_0.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/patch_811v.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/studio/patches/smooth_1.json ADDED
The diff for this file is too large to render. See raw diff
 
assets/videos/drag_patch.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fb88942eb1c3b210de437d344be2cc10ffac55aab79f186fc611fefd1731efd
3
+ size 7492248
assets/videos/drag_patch_poster.jpg ADDED
assets/videos/full_paper_demo.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cbef0518777b3d05ba5b679dd844ba5410a5b09904ff8e98416a32f11c07eaa
3
+ size 11317589