Commit Graph

80 Commits

Author SHA1 Message Date
Ashley Rogers cbdc957cb2 Format 2025-01-24 15:43:39 -05:00
Ashley Rogers e16c56228b Don't crash when culling volume position is too large 2025-01-24 15:42:45 -05:00
Ashley Rogers 5c3a0ed1c2 Format 2025-01-15 16:58:50 -05:00
Ashley Rogers 4e318925a5 Switch tests to doctest 2025-01-15 16:58:03 -05:00
Ashley Rogers 768b6510b3 Quotes to brackets 2024-12-20 12:00:09 -05:00
Ashley Rogers 2c8aa4a422 Fix includes using script 2024-12-20 11:56:49 -05:00
Ashley Rogers 1e2e47ab5e misc-include-cleaner for every file 2024-12-17 17:27:03 -05:00
Ashley Rogers 2dd41959e8 Format... again 2024-11-22 11:35:06 -05:00
Ashley Rogers cca8871eef Include both catch2 headers 2024-11-22 11:30:45 -05:00
Ashley Rogers 9b46d6f93e Format 2024-11-22 11:19:22 -05:00
Ashley Rogers f82d65bead Change Catch2 header 2024-11-22 11:17:21 -05:00
Kevin Ring 89dfc44bdc Remove use of GSL.
Change gsl::span to std::span, and replace the few uses of gsl::narrow
with an alternative.
2024-11-06 15:16:03 +11:00
Sean Lilley 91125ce4e0 Merge branch 'main' into get-up-axis-transform 2024-10-01 10:48:20 -04:00
Sean Lilley d2f3e4fa22 Remove namespace 2024-09-27 10:26:59 -04:00
Sean Lilley 277b6569a5 Added Transforms::getUpAxisTransform 2024-09-26 14:02:20 -04:00
Kevin Ring ef273ac266 More performant rayOBBParametric. 2024-08-29 09:42:18 +10:00
Kevin Ring 68341f6bcd Fix an unknown bug in rayOBBParametric by rewriting it.
There were tests, and the old implementation passed them. I added new
tests, and it passed those, too. But some real-world height queries were
returning way too many potential tiles, and I narrowed it down to a
problem with this intersection test. When I rewrote it "the long way",
the too-many-tiles problem disappeared, and all the tests still pass.

So I'm not quite sure what was wrong with the old implementation, but
I'm committing this working one before I write more tests and optimize
it.
2024-08-28 17:56:54 +10:00
Brian L 1fa8ee45e1 Get rid of more t return params, update docs 2024-07-25 12:08:40 -06:00
Brian L 7cda07f420 Remove occurrences of including <glm/mat4x4.hpp> in header files 2024-07-09 09:25:27 -06:00
Brian L 728668a873 Merge branch 'main' into gltf-ray-intersect 2024-07-08 09:15:30 -06:00
Kevin Ring 19f832cd2b Remove degenerate triangle test from 2D pointInTriangle. 2024-06-27 22:05:15 +10:00
Brian L 1f6ac44834 Merge branch 'main' into gltf-ray-intersect 2024-06-12 16:22:01 -06:00
Janine Liu 6cf5fa9b8a Check for radii = 0 2024-06-07 10:02:45 -04:00
jiangheng90 875f50934e update rayEllipsoid Param inverseRadii to radii 2024-06-06 14:22:26 +08:00
jiangheng90 3b73be23ca move local variable to namespace in ray ellipsoid test 2024-06-05 11:39:09 +08:00
jiangheng90 5d52f71a48 add ray ellipsoid for intersection tests 2024-06-03 14:03:09 +08:00
Brian L b765a735c9 update from main 2024-05-06 15:07:03 -06:00
Brian L 11d8a6daa4 Build reverse winding tests into all tests (and remove explicit tests for this) 2024-03-26 10:57:47 -06:00
Janine Liu a8e4770dc9 Add tests for degenerate triangles 2024-03-22 10:29:17 -04:00
Janine Liu dcda68f9fc Replace with explicit references to corner 2024-03-21 16:48:00 -04:00
Janine Liu 2a9716b18d Reorganize unit tests and improve comments 2024-03-21 15:38:44 -04:00
Brian L 4054b57789 Fix last test duplicating previous test. Add more test comments 2024-03-21 11:18:57 -06:00
Janine Liu 3f4248e04e Rename function, other minor edits 2024-03-20 20:12:43 -04:00
Janine Liu 734992a3d2 Add pointInTriangle for 3D coordinates 2024-03-01 16:30:44 -05:00
Sean Lilley 7022b955a1 Fix estimateGlobeRectangle for boxes and sphere that encompass the entire globe 2024-02-09 10:16:28 -05:00
Joseph Kaile c6bcf9736f update and comment intersection functions 2024-01-02 14:53:43 -05:00
Joseph Kaile 12d6885e42 add more intersection tests 2023-12-19 19:16:53 -05:00
Joseph Kaile ad512a3026 add gltf ray intersect function with tests 2023-12-13 17:37:10 -05:00
Kevin Ring 5e860d6d10 Fix OrientedBoundingBox::contains. 2023-11-06 19:19:12 +11:00
Kevin Ring ec02c89a6b Add TileBoundingVolumes class, other BV tweaks. 2023-11-06 18:48:23 +11:00
Kevin Ring 3fb850e480 Fix test failures on clang, etc. 2023-03-16 21:59:47 +11:00
Kevin Ring d1b4c24dd5 Fix a bug in AxisAlignedBox's center computation. 2023-03-16 16:00:43 +11:00
Kevin Ring 8215e5dd92 Add OrientedBoundingBox::toAxisAligned. 2023-03-16 10:33:18 +11:00
Janine Liu 3024720c3b Fix typo and test file name 2023-02-24 16:33:33 -05:00
Kevin Ring 65e6efc3bc Beginning of GlobeAnchor implementation. 2023-02-13 22:01:01 +11:00
Kevin Ring f5a9f816e2 Fix merge error. 2022-02-24 11:25:59 +11:00
Kevin Ring 7efd09db05 Merge remote-tracking branch 'origin/main' into ue5 2022-02-24 10:48:11 +11:00
Joseph Kaile cf21f59481 fix distance squared to function in bounding sphere 2022-01-25 13:13:33 -05:00
Kevin Ring 1a100de53e More renaming for consistency. 2022-01-25 19:36:10 +11:00
Sean Lilley 2cdcb92e20 Namespace cleanup 2021-12-02 18:34:22 -05:00