Simulator · 開発の現状Development

GKOS

General Kirigami Origami Simulator

単一ファイルで動く、剛体折紙・切紙の運動シミュレータ A single-file simulator for the motion of rigid origami and kirigami

ミウラ折り → RES 三段の立ち上がり(伸び)→ RES 球面 → 切紙の塔 → 曲率の着色。約15秒、音なし。 Miura-ori → a three-tier RES rising (with stretch) → RES sphere → kirigami tower → curvature colouring. About 15 s, no sound.

概要Overview

GKOS は、折紙と切紙(キリガミ)の折り運動をブラウザ上で追跡する研究・教育用のシミュレータです。舘知宏の剛体折りシミュレーション法(頂点まわりの回転閉合を Newton 法で解く global-Jacobian 法)を単一の HTML ファイルとして再構成し、非可展頂点・切紙のループ閉合・閉管の全経路・弾性へと拡張しました。インストール不要で、スマートフォンでも動きます。

GKOS is a research and teaching simulator that tracks the folding motion of origami and kirigami in the browser. It rebuilds Tomohiro Tachi’s rigid-origami simulation method — the global-Jacobian method, which solves rotational closure around each vertex by Newton iteration — as a single HTML file, and extends it to non-developable vertices, loop closure for kirigami, full paths of closed tubes, and elasticity. No installation is needed, and it runs on smartphones.

できることWhat it does

折り運動の追跡Tracking the fold
予測子–修正子の連続法で、静的な形ではなく折りの軌跡を追います。直前の形から少しずつ動かすので途中で別の解へ跳ばず、剛体のまま折れなくなる限界を自動で検出します。
A predictor–corrector continuation method follows the folding path, not just a static shape. Each step starts from the previous one, so the motion never jumps to another solution, and the limit beyond which the model can no longer fold rigidly is detected automatically.
非可展頂点Non-developable vertices
セクター角の和が 360° でない頂点(円錐頂点)も同じ式で扱います。
Vertices whose sector angles do not sum to 360° (cone vertices) are handled by the same formulation.
切紙と閉管Kirigami and closed tubes
切り込みで分かれた面のつながりを面ループの閉合(SE(3))として拘束し、ポップアップ切紙や閉じた筒状の模型の全工程を可逆に駆動します。
Faces separated by cuts are linked through face-loop closure constraints (SE(3)), so pop-up kirigami and closed tubular models can be driven reversibly through their whole motion.
弾性の拡張Beyond rigidity
剛体では動かない模型のために、面の曲げと、紙のわずかな伸びを許す「棒と蝶番」の解法を備えます。剛体のままでは平坦から動けない曲線切紙(RES)が、塔や球面として立ち上がります。
For models that cannot move rigidly, GKOS adds face bending and a bar-and-hinge solver that lets the paper stretch slightly. Curved-cut kirigami (RES), which cannot leave the flat state as a rigid mechanism, rises into towers and spheres.
物理量の着色Physical quantities in colour
歪み・曲げ角・蝶番のエネルギー・曲率を、知覚的に一様で色覚多様性に配慮した配色で表示します。曲率は三角化の細かさに依りません。
Strain, bending angle, hinge energy and curvature are shown with perceptually uniform, colour-vision-friendly palettes. Curvature does not depend on how finely the faces are triangulated.
描画Rendering
折線から解析的に求める擬似AO、設置面の影、環境光、静止時の蓄積、Mitsuba への書き出し。
Pseudo ambient occlusion computed analytically from the creases, ground shadows, environment lighting, progressive accumulation at rest, and Mitsuba export.
互換性Compatibility
Origami Simulator と同じ規約の SVG/FOLD 展開図を読み込みます。
Reads crease patterns in SVG / FOLD following the same conventions as Origami Simulator.

陰影Shading

紙の立体らしさは陰影で決まります。GKOS は、折線の角度から解析的に求める擬似AO(谷の奥ほど暗くなる陰)と、設置面に落ちる柔らかな影を重ねて、模型の奥行きを表します。

Paper forms read through their shading. GKOS layers pseudo ambient occlusion, computed analytically from the fold angles so that valleys darken toward their depths, with soft shadows cast on the ground, to convey the depth of a model.

RES sphere casting a soft shadow on the ground / 柔らかな影を地面に落とす RES 球面
RES 球面 — 曲線の切れ目から漏れる光と、ボケを持った影が地面に落ちるRES sphere — light through the curved slits, and a soft-edged shadow on the ground
Three-tier RES tower casting a soft shadow / 柔らかな影を落とす RES 三段の塔
RES 三段の塔 — 細い枠の影が、柔らかくボケて基盤と地面に映るThree-tier RES tower — the thin frames cast soft, blurred shadows on the base and the ground
Miura-ori without pseudo AO / 擬似AO なしのミウラ折り
擬似AO なしWithout pseudo AO
Miura-ori with pseudo AO / 擬似AO ありのミウラ折り
擬似AO あり — 谷折りの奥が沈み、凹凸が読めるWith pseudo AO — valleys recede and the relief becomes legible

画面Interface

GKOS desktop interface with the colouring panel / GKOS の PC 画面(着色パネル)
PC — 着色パネルで配色と上限を調整Desktop — palette and range in the colouring panel
GKOS on a smartphone / スマートフォンの GKOS
スマートフォン — パネルは画面下のシートにPhone — panels in a bottom sheet

技術の要点Technical notes

解析ヤコビアン(頂点 SO(3)・面ループ SE(3))、RCM 順序付けとスカイライン Cholesky による疎直接法、3 系統の連続法(通常・閉管・非可展)。数値核は Node のハーネスで検証し、代表 4 模型の折り角をビット単位で記録する回帰基準(golden ρ)で、各版の再現性を保っています。

Analytic Jacobians (vertex SO(3), face-loop SE(3)); a sparse direct solver with RCM ordering and skyline Cholesky; three continuation schemes (standard, closed tube, non-developable). The numerical core is verified in a Node harness, and a bit-exact regression baseline of fold angles for four reference models (golden ρ) keeps every revision reproducible.

動作環境:Chrome / Edge / Safari / Firefox の最新版。単一の HTML ファイル(約 1.4 MB)、外部依存なし、オフラインで動作。

Runs in current Chrome, Edge, Safari and Firefox. A single HTML file (about 1.4 MB) with no external dependencies; works offline.

現状と今後Status and next steps

現在 Rev.156。公開に向けて準備中です。

Currently at Rev.156, in preparation for public release.

開発:宮本好信Developed by Yoshinobu Miyamoto