fast_obj
fast_obj copied to clipboard
Fast C OBJ parser
If the allocation on line fast_obj.h#1450 fails the memory allocated at fast_obj.h#1397 is leaked. https://github.com/thisistherk/fast_obj/blob/85778da5fc320b7e52885f8e869edc079695cc79/fast_obj.h#L1450
Hi, Wondering if you had tried or have experience around those 2 ideas: 1. prepass for big allocation upfront and avoid realloc? (parse line numbers of v/n/vt then allocate once...
Hey, would it be possible to add support for #obj file generated by SculptrVR #Vertex format: v x y z r g b#Vertex colors are not supported by all programs....
Would be nice to e.g. ignore texture coordinates if you're not bothered about them. Float parsing takes the majority of execution time, so skipping parsing things that aren't needed would...
I am planning to include fast_obj in another Mesh data translator library ([i3s-lib](https://github.com/Esri/i3s-lib))as an example of mesh-format with LoD packed as a single file via CMake [ExternalProject](https://cmake.org/cmake/help/latest/module/ExternalProject.html#command:externalproject_add) mechanism. Placing the...
`fast_obj` works quite well as a reader. For application that do rad/write of OBJ, it would be nice to be able to be able to save an in-memory obj to...
Hey, thanks for making this project available! When I parse a basic cube mesh with 8 vertices and 12 triangles, the fastObjMesh->position_count reads 9 instead of 8. It looks like...
If you could consider it, and now that visual studio also support it since VS2017, it would be really useful to make sure diff/PR/etc are easier ?
OBJ allows line continuations: if you put a backslash at the end of a line, parsing is supposed to continue on the next line as if it were part of...
Hi, The following obj file causes the parse_face function to get stuck in an infinite loop: `f f` (3 letters only) In the parse_face function, the pointer never gets advanced,...