Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliendelplanque/ply
A PLY parser/model for Pharo.
https://github.com/juliendelplanque/ply
parser pharo ply smalltalk
Last synced: 4 days ago
JSON representation
A PLY parser/model for Pharo.
- Host: GitHub
- URL: https://github.com/juliendelplanque/ply
- Owner: juliendelplanque
- License: mit
- Created: 2016-12-10T19:19:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T19:52:09.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T07:05:13.541Z (about 2 months ago)
- Topics: parser, pharo, ply, smalltalk
- Language: Smalltalk
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PLY
A PLY parser/model for Pharo. PLY ([Polygon File Format](https://en.wikipedia.org/wiki/PLY_(file_format))) is a text file format for storing 3D models. This projects requires `PetitParser` which is loaded (only the core) automatically by the baseline.## Install
In a fresh Pharo image, execute the following code snippet in a Playground.
```
Metacello new
baseline: 'PLY';
repository: 'github://juliendelplanque/PLY/repository';
load
```## Example
The `PLYASTBuilder` allows to parse a `String` containing ply-formatted data:
```
PLYASTBuilder parse: 'ply
format ascii 1.0
comment created by platoply
element vertex 8
property int x
property int y
property int z
element face 6
property list uint int vertex_indices
end_header
-1 -1 -1
1 -1 -1
1 1 -1
-1 1 -1
-1 -1 1
1 -1 1
1 1 1
-1 1 1
4 0 1 2 3
4 5 4 7 6
4 6 2 1 5
4 3 7 4 0
4 7 3 2 6
4 5 1 0 4'
```