Commit Graph
53 Commits
Author SHA1 Message Date
Graham Pentheny 70faf88951 Removed unnecessary extra heap allocation from InputGeom 2025-09-14 17:06:53 -04:00
Graham Pentheny bf2d57f187 Fix some static analysis warnings 2025-09-02 17:48:08 -04:00
Graham Pentheny 65bd5be6b3 Fixed Windows compilation errors 2025-09-02 17:47:23 -04:00
Graham Pentheny 8f900aff35 Clean up InputGeom.h and cpp. Restore some includes that are needed on linux and windows 2025-09-02 01:43:43 -04:00
Graham Pentheny e0917fd547 Clean up includes in cpp files 2025-08-31 23:24:05 -04:00
Graham Pentheny 8de2dcef5f Use vectors to store offmesh connection data rather than arrays 2025-08-25 12:08:48 -04:00
Graham Pentheny 30d459ca73 Use a vector to store convex volumes rather than fixed-size array 2025-08-25 01:01:21 -04:00
Graham Pentheny 2d859216a4 Moved mesh loading to a method in Mesh class 2025-08-25 00:20:44 -04:00
Graham Pentheny d6aebcc183 De-dupe some file reading code 2025-08-06 22:35:38 -04:00
Graham Pentheny e79906ee48 Improved return method for node indexes from partitioned mesh queries 2025-08-06 13:03:45 -04:00
Graham Pentheny 47f82a60cd Rename ChunkyTriMesh to PartitionedMesh 2025-08-06 12:45:31 -04:00
Graham Pentheny 558d4dfffd Cleanup ChunkyTriMesh 2025-08-06 12:39:08 -04:00
Graham Pentheny 6c26097307 Rename parseObjModel to parseObjData 2025-08-06 11:29:50 -04:00
Graham Pentheny bfd963893e Split out mesh data into its own struct 2025-08-06 11:28:58 -04:00
Graham Pentheny 213d6529a9 Rename meshBMin and meshBMax to meshBoundsMin and meshBoundsMax 2025-08-05 21:47:44 -04:00
Graham Pentheny d53b0b6a7f Renamed volumes to convexVolumes 2025-08-05 16:24:12 -04:00
Graham Pentheny 7ba105dc72 Rename volumeCount to convexVolumeCount 2025-08-05 16:14:25 -04:00
Graham Pentheny a94dee954d More code cleanup
# Conflicts:
#	RecastDemo/Include/InputGeom.h
#	RecastDemo/Include/SampleInterfaces.h
2025-07-19 11:53:01 -04:00
Graham Pentheny cbbbad99a1 Convert file IO to use FileIO class in SampleInterfaces.h
de-duping a lot of standard file IO
2025-07-19 11:47:13 -04:00
Graham Pentheny d534b4dc14 WIP DearImGui conversion 2025-07-12 15:02:54 -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 d10e82d0c9 Rename rcChunkyTriMesh to just ChunkyTriMesh since it's a class that's part of the demo project, not Recast itself. 2025-06-02 01:22:24 -04:00
Graham Pentheny 67421b6091 cleanup mesh loading 2025-05-30 01:37:05 -04:00
Graham Pentheny 4a505c0afe clang-format InputGeom.cpp 2025-05-19 23:26:19 -04:00
Graham Pentheny 20e3afbb03 Use vectors and methods in ChunkyTriMesh to simplify things 2025-05-05 15:34:18 -04:00
Graham Pentheny 9d90e162e1 Clean up InputGeometry 2025-04-09 01:15:49 -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
Kyeongho Park 24230e8e8d Bugfix/chunkytrimesh subdivide maxnodes (#451)
* minor redundant: dir

* bugfix: ChunkyTriMesh nodes array: out of bounds
2020-11-17 11:46:52 +01:00
Aurelien Rainone 4988ecbaf0 RecastDemo: add Load & Save buttons for SoloMesh Sample, and fix warnings (#258)
* Implement saveAll loadAll for Sample_SoloMesh

 - Solo mesh sample is loaded and saved as a tiled mesh containing
   an unique tile, so as to remain compatible with tiled mesh
 - navmesh is saved to/loaded from `solo_navmesh.bin` binary file
 - add and connect the corresponding 'Save/Load' GUI elements

* Fix `implit-fallthrough` gcc warnings

On linux with gcc 7.2.0+ and all warnings treated as errors,
implicit fallthroughs in case statements are considered as errors.
If the comment just below the next `case` or `default` matches
various strings, one of which is `falls through` the fallthrough
is then considered explicit.
2018-01-05 12:38:53 +01:00
Domenico Albani 03eb2f92f3 Make RecastDemo colors more meaningful (#254)
Implement a SampleDebugDraw which will color area types meaningfully, for example
color water as blue, grass as green and so on.
2017-02-02 20:27:43 +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 0482a3104c Fixed potential memory leak deserializing an InputGeom. 2014-12-24 15:35:36 -05:00
Jonathan Adamczewski 1d05c18c00 Used read length (and suppress warning) 2014-03-24 00:16:35 -07:00
Mikko Mononen e6b1d141d2 Fixed warnings when compiling with -Wshadow. 2012-02-22 17:25:46 +00:00
Mikko Mononen 1be9de72d8 Detour version change! Added user ID per off-mesh connection. Fixed off-mesh connection draw flags after using off-mesh con tool. 2010-11-07 15:21:38 +00:00
Mikko Mononen 43a79f600f Fix for earlier raycast speed up and another speedup. 2010-10-15 13:00:18 +00:00
Mikko Mononen c83be9f214 Sped up input geom raycast 2010-10-15 12:19:44 +00:00
Mikko Mononen 5abddbf0cd Refactored rcBuildContext to be more customization friendly, changed name to rcContext. 2010-08-24 17:53:38 +00:00
Mikko Mononen 55360f6ee5 Missing files for R197 2010-08-19 09:55:12 +00:00
Mikko Mononen 7d8fe75de1 The ugly and humble beginnings of path following and multi-agent navigation code. 2010-08-12 12:54:00 +00:00
Mikko Mononen 10b330ffb4 Moved common functions behind name decoration. 2010-04-14 18:45:46 +00:00
Mikko Mononen 9bb95ef45b Issue 61: Everything compiles now without errors in warning level 4. 2010-04-13 09:39:33 +00:00
Mikko Mononen 5119b5cb16 API CHANGE! Better serialization support. 2010-03-25 12:24:40 +00:00
Mikko Mononen a715e9a5f7 Area progress: Pass area type and ability flags to recast. Convex Area tool. Mark chf with convex volumes. Better visualization of volumes. 2010-02-05 16:15:49 +00:00
Mikko Mononen f839fb080a NOTE: Changed the generation procedure, see samples! Erode walkable area before area is generated. Allow to mark areas on chf. Generate regions following areas (+ many fixes here and there to make it alwasy work). Part 2 2010-02-01 14:58:30 +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 a56bf3ec2d Off-Mesh connections across tile boundaries. Fixed getPolysAround(). Detour links per poly use linked list. Adjusted off-mesh connection tool. 2010-01-26 12:48:58 +00:00
Mikko Mononen 3abbfe006d Changed Detour header var names more to verbose. Pass params as a struct to dtCreateNavMeshData. Named Off-mesh links to Off-mesh connections. Cleaned up Off-mesh connection code and samples. Added connection radius and direction to Off-mesh connections. Agent dimensions passed store in navmesh header. 2010-01-19 14:22:48 +00:00