STLについて調べる
STLファイルのフォーマット知りたい
https://www.hiramine.com/programming/3dmodelfileformat/stlfileformat.html
https://ja.wikipedia.org/wiki/Standard_Triangulated_Language
三次元形状を構成する三角形要素の集合を記述する
なるほど。単純なんだな
ASCIIとバイナリがある
https://github.com/fogleman/sdf
これが面白い
stl.pyのファイル作ってるところ見ると良さそう
割と単純ぽい
点、法線、attr
CGの基本みたいなデータで構成されてるっぽい
このライブラリは、距離関数からメッシュを構築してることになるな
https://twitter.com/FogleBird/status/1352789173917392896
Nothing revolutionary here, but I'm writing my own SDF-to-mesh library in Python. It just uses marching cubes but it's surprisingly fast using numpy and multithreading.
そういうことだった