デコーダーパターンによる3Dジオメトリの読み込み
https://fortee.jp/2025fp-matsuri/proposal/a82127a7-f84a-43c1-a3de-483e1d973a94
https://unsoundscapes.com/slides/2025-06-15-loading-3d-geometry-using-the-decoder-pattern/#1
elm/json の Json.Encode / Json.Decode と同じような実装パターンで Blender の OBJ ファイル を エンコード / デコード するライブラリを開発した
https://guide.elm-lang.jp/effects/json.html#jsonデコーダー
GitHub.icon https://github.com/w0rm/elm-obj-file
デコーダは elm/json と同様に 合成 可能(Obj.Decode.map、map2…)
そのまま読み込むと 座標系 が異なり、モデルが横倒しになることがあったので、座標系変換関数も提供した
e.g. texturedFacesIn
他の API
プリミティなデコーダ
e.g. polylines, objectNames
高度なデコーダ
e.g. oneOf, succeed, fail, andThen, combine
#関数型まつり_2025