https://github.com/tangrams/vbo-convert
A few ways to convert Tangram VBOs to 3D file formats
https://github.com/tangrams/vbo-convert
Last synced: 9 months ago
JSON representation
A few ways to convert Tangram VBOs to 3D file formats
- Host: GitHub
- URL: https://github.com/tangrams/vbo-convert
- Owner: tangrams
- License: mit
- Created: 2014-09-11T20:55:51.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T20:01:58.000Z (almost 11 years ago)
- Last Synced: 2025-06-06T15:06:51.485Z (about 1 year ago)
- Language: Python
- Size: 13.6 MB
- Stars: 17
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
vbo-convert
==========
A few ways to convert [Tangram](https://github.com/tangram-map/tangram) VBOs to 3D file formats.

These scripts work with vertex buffer objects (VBOs) exported from Tangram. For an example of how to export these VBOs, see https://github.com/meetar/manhattan-project/blob/master/lib/batch_export.js
### usage
`python [scriptname] [infile] [outfile]`
### example usage
`python vbo_to_ply.py tile_verts tile_faces.ply`
### filelist
- tile_verts - processed vertices extracted from a Tangram tile's VBO
- tile_verts_small - a trimmed version of tile_verts with only 1000 vertices
- vbo_to_obj.py - Wavefront OBJ format converter
- tile_verts.obj - sample output of above
- vbo_to_ply.py - Stanford Poly format converter - includes vertex color information
- tile_verts.ply - sample output of above
- tile_points.ply - example pointcloud for visualization
- tile_faces_base.stl - example of OBJ file converted to STL, with an extruded ground plane
- tile_faces_base.gcode - stl file sliced with Makerbot software – ready to print!