Graham Pentheny
6c26097307
Rename parseObjModel to parseObjData
2025-08-06 11:29:50 -04:00
Graham Pentheny
d1e513aeaf
Remove MeshLoaderObj class. Replace with parseObjModel function
2025-07-07 00:54:57 -04:00
Graham Pentheny
c1674f805d
Replace file-loading MeshLoaderObj::load function with call to tryReadFile
...
to consolidate file IO
2025-06-29 21:50:27 -04:00
Graham Pentheny
d35e1afa1f
Fixed signed/unsigned comparison warning on linux
2025-06-29 21:32:10 -04:00
Graham Pentheny
f3d2e4828d
Fixed mesh loading bugs introduced by code cleanup
2025-06-03 00:42:02 -04:00
Graham Pentheny
67421b6091
cleanup mesh loading
2025-05-30 01:37:05 -04:00
Graham Pentheny
e6f93cf326
clang-format MeshLoaderObj
2025-05-23 00:29:50 -04:00
Graham Pentheny
b43c82c808
Removed _USE_MATH_DEFINES directive ( #596 )
...
Since none of the `M_` prefixed constants are used anywhere in the code, this is unnecessary. It's also Windows-specific, so these non-standard defines shouldn't be used anyway.
Ref: https://learn.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-170
2022-12-29 15:09:01 -05:00
Jakob Botsch Nielsen
5d4186046c
Mark a fall-through with a comment
...
Fix #283
2018-01-05 13:06:06 +01:00
Ben Hymers
3eb9c808c1
Fix many cases of return values from ftell and fseek being ignored
...
These could lead to undefined behaviour if e.g. a negative value from ftell
was used to allocate memory.
Also store result of ftell in a long;
The result may previously have been truncated on some platforms
2016-03-15 08:02:06 +00:00
Jakob Botsch Nielsen
a31da928ba
Add settings storage to geometry sets
...
This adds the ability for geometry sets to store build settings that can
be automatically applied when they are loaded. This should allow sharing
of .gset files to demonstrate problems with certain settings on certain
files. It also allows people to diagnose problems more easily by being
able to dump their own triangle meshes and settings and load them in the
demo, with all of its visualization options. .gset files can be created
from the current mesh and settings by pressing the 9 key, which will
generate it in the same folder as the input mesh.
Also converts more of the demo to use STL.
2016-01-17 20:31:09 +01:00
grahamboree
ce4c63787b
Fixed a potential memory leak when reading a mesh file.
2014-12-24 15:34:01 -05:00
Jonathan Adamczewski
1d05c18c00
Used read length (and suppress warning)
2014-03-24 00:16:35 -07:00
Jonathan Adamczewski
88484cbd7d
Remove unused variable
2014-03-23 23:57:46 -07:00
Mikko Mononen
de6fd8c3ef
- use "cylinder distance" for nearest point in polygon
...
- added option for findStraightPath() to append vertices at get edge crossings
- added scale parameter for .obj loader
2012-09-05 05:57:31 +00:00
Mikko Mononen
5119b5cb16
API CHANGE! Better serialization support.
2010-03-25 12:24:40 +00:00
Mikko Mononen
af0d41f5ff
Compact heighfield dump and debug project to load it.
2010-03-01 08:22:50 +00:00
Mikko Mononen
1753297fd5
Humble beginnings of box volume too. Allow to save and restore GeomInput state.
2010-01-29 13:58:36 +00:00
Mikko Mononen
6fc3d5c58e
Detour/Recast/Demo: Removed GCC reorder warnings (enabled -Wreorder under xcode).
...
Recast: RecastTimer should compile with null implementation under Linux now.
2009-07-15 12:51:05 +00:00
Mikko Mononen
ec96c8d1ef
- Separating demo out from the Recast folder (osx version only)
2009-03-29 15:39:02 +00:00