file in abyss
フォーマット一覧へ戻る

3D

PLY Polygon File Format

Stanford Triangle Formatとも呼ばれる3Dジオメトリ形式。ASCIIのplyヘッダから始まり、Gaussian Splattingでは点ごとの色、透明度、スケール、回転などのプロパティを格納します。

Extensions .ply
MIME model/ply, application/octet-stream

マジックナンバー

ファイルを解析
オフセット 0 PLY header with LF newline
70 6C 79 0A
ply.
オフセット 0 PLY header with CRLF newline
70 6C 79 0D 0A
ply..

構造

  1. ply magic line
  2. format declaration
  3. element and property declarations
  4. end_header
  5. ASCII or binary element data

注意点

  • PLY自体は汎用3D形式なので、Gaussian Splatting用途ではx/y/zだけでなくopacity、scale、rotation、spherical harmonics系プロパティの有無を確認します。
  • ASCII、binary_little_endian、binary_big_endianのバリエーションがあり、先頭ヘッダの確認だけではデータ部を安全に読めません。

判定コード例

SIGNATURE = bytes.fromhex("706c790a")
OFFSET = 0

def is_ply(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

実践的な使い方

ユースケース

Polygon File Format は3Dビューア、アセットパイプライン、モデル変換、アバター読み込み、シーン検証などで使われます。コンテナ・拡張子・バイナリチャンク・テクスチャ参照が実装の挙動に影響します。

よくある判定ミス

  • .ply という拡張子だけではファイルの中身を保証できません。アップロードや変換の処理では、拡張子・MIMEタイプ・先頭バイト・形式固有の構造チェックを組み合わせるべきです。
  • Polygon File Format は 70 6C 79 0A または 70 6C 79 0D 0A のようなシグネチャで始まりますが、関連するコンテナや破損ファイルでは追加の検証が必要になる場合があります。

セキュリティ上の注意

形式が判定できたからといって、信頼できない入力が安全とは限りません。パーサ例外・巨大ファイル・想定外のエンコーディング・外部参照を考慮してください。

サンプルの活用

8 個のサンプルで、ビューアの読み込み・拡張子判定・ファイルサイズごとの読み込み時間をテストできます。

サンプルファイル

8 / 8 files
Sample Traits Size Source / license / SHA-256
3D

Voxel51 Train 7k Gaussian Splat PLY

Voxel51 Train 7k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-train-iteration-7000.ply
Type Sample
Large file
175.47 MB
SHA-256 9f5c643fa18cb5ed6a11441f073133ed1034e3b0656bce5b7b5db3db49161366
Download
3D

Voxel51 Train 30k Gaussian Splat PLY

Voxel51 Train 30k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-train-iteration-30000.ply
Type Sample
Large file
254.19 MB
SHA-256 a4c1906ce0256f5cb2255aa078d18b468dc01d8604f6eda1aaf22b235147a7a1
Download
3D

Voxel51 Playroom 7k Gaussian Splat PLY

Voxel51 Playroom 7k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-playroom-iteration-7000.ply
Type Sample
Large file
353.69 MB
SHA-256 201bc92b65594727a3ecfbe7e658c09ac3f8be753e2e2024047cd3ea1fe31d8c
Download
3D

Voxel51 Playroom 30k Gaussian Splat PLY

Voxel51 Playroom 30k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-playroom-iteration-30000.ply
Type Sample
Large file
453.25 MB
SHA-256 c6fddedf6c7b412d078bbbaa1826e7a1b258f75f862c5190dc50a646243d7d9e
Download
3D

Voxel51 Truck 7k Gaussian Splat PLY

Voxel51 Truck 7k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-truck-iteration-7000.ply
Type Sample
Large file
400.31 MB
SHA-256 158dd977a3197c7845da6eb45a3aa6f990e2e8ccac5f66d0436cac08873e4f4d
Download
3D

Voxel51 Truck 30k Gaussian Splat PLY

Voxel51 Truck 30k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-truck-iteration-30000.ply
Type Sample
Large file
486.42 MB
SHA-256 2301f6f0d0e13d48b375f4d5ae1ce20ebaee2aa2978f576be4e8c09ae2971f5c
Download
3D

Voxel51 Dr Johnson 7k Gaussian Splat PLY

Voxel51 Dr Johnson 7k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-drjohnson-iteration-7000.ply
Type Sample
Large file
452.60 MB
SHA-256 9710dfbc97d1f288ac3f8d281e5422fc91127f656aeb706852c952f2b506134b
Download
3D

Voxel51 Dr Johnson 30k Gaussian Splat PLY

Voxel51 Dr Johnson 30k Gaussian Splat PLY is a Polygon File Format sample based on Hugging Face: Voxel51/gaussian_splatting. It can be used to test downloads, parsers, previews, and file type detection.

voxel51-drjohnson-iteration-30000.ply
Type Sample
Large file
751.53 MB
SHA-256 92f4898839ec4ad7f197cf6c74b89918b35ea712b4e41435593ccb152d22b7f5
Download

よくある質問

Polygon File Format のマジックナンバー(ファイルシグネチャ)は?

Polygon File Format ファイルはバイトシグネチャ 70 6C 79 0A ("ply.") または 70 6C 79 0D 0A ("ply..") で始まります。拡張子に頼らず、この先頭バイトを読み取って形式を判定してください。

Polygon File Format のMIMEタイプは?

Polygon File Format のMIMEタイプは model/ply, application/octet-stream です。

Polygon File Format の拡張子は?

Polygon File Format ファイルは .ply 拡張子を使います。拡張子は慣習にすぎず中身を保証しないため、シグネチャや構造のチェックと組み合わせてください。

関連フォーマット