-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affects: io7m-com/.github#2
- Loading branch information
Showing
15 changed files
with
144 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
## jobj | ||
|
||
A parser for the useful subset of the Wavefront OBJ file format. | ||
|
||
## Features | ||
|
||
* Hand-written event-based recovering parser: Efficiently parse, accumulating | ||
errors along the way, without being tied to any particular AST types. | ||
* High coverage test suite. | ||
* [OSGi-ready](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* ISC license. | ||
|
||
## Usage | ||
|
||
Provide an implementation of the `JOParserEventListenerType` interface | ||
to a `JOParserType`: | ||
|
||
``` | ||
Path file; | ||
JOParserEventListenerType listener; | ||
InputStream stream; | ||
|
||
final JOParserType p = | ||
JOParser.newParserFromStream( | ||
Optional.of(file), | ||
stream, | ||
listener | ||
); | ||
|
||
p.run(); | ||
``` | ||
|
||
The `listener` will receive parse events encountered during parsing of the | ||
file. | ||
|
||
## Coverage | ||
|
||
The only specification for the OBJ file format is an | ||
[unofficial specification](src/site/resources/obj.txt) that appears to have | ||
been handed around for decades. | ||
|
||
Most of the OBJ file format has no relevance to anything used in modern | ||
computer graphics in 2024, but the format itself is often used as a | ||
bare-minimum portable text format for distributing mesh data. This parser | ||
attempts to capture the useful subset of data and makes no attempt to parse | ||
the entirety of the OBJ format. It's practically guaranteed that the parser | ||
will be missing the once piece of data you actually wanted to extract from the | ||
`.obj` file you're parsing. Patches to increase format coverage are welcome. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
com.io7m.jobj.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.