Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

matt77hias/objpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

objpy

About

  • obj_parser.py: A lightweight Wavefront OBJ parser which only supports vertices and faces.
  • obj_normalizer_v1.py: A Wavefront OBJ normalizer which centers models at (Origin.x, Min.y, Origin.z) and uniformly rescales models to [0,1]3.
  • obj_normalizer_v2.py: A Wavefront OBJ normalizer which centers submodels at (Origin.x, Min.y, Origin.z) and uniformly rescales submodels to [0,1]3.

Use

import obj_parser

vertices, faces = obj_parser.parse(fname)