seiyata / uvmap-extractor

Extract UV map from .obj file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uvmap-extractor

Perl script to extract UV map from .obj file

Usage

$ perl uvmap-extractor.pl <InputFile> <OutputFile>

Input (.obj file)

https://en.wikipedia.org/wiki/Wavefront_.obj_file

Output (JSON file)

[ Faces [ Vertices [x, y] ] ]

Something like this.

[
  [[0, 0], [0, 0.1], [0.1, 0]],
  [[0, 0.1], [0.1, 0.1], [0.1, 0]],
  ...
]

About

Extract UV map from .obj file


Languages

Language:Perl 100.0%