Commit Graph

111 Commits

Author SHA1 Message Date
Kevin Ring 19486927a4 Put local functions into the anonymous namespace. 2024-07-31 17:51:23 +10:00
Brian L 621304724f Change rayAABBParametric to return a std optional 2024-07-25 10:41:39 -06:00
Brian L 7b5382e855 let rayTriangleParametric return an optional 2024-07-24 13:47:12 -06:00
Brian L d03181a97a Revert changes to ForEachPrimitiveInSceneXXX callbacks 2024-07-24 13:17:22 -06:00
Brian L 3b6c5a4467 Rewrite to not rely on != 1.0 checks 2024-07-09 15:04:40 -06:00
Brian L 7f2d18b0d4 Replace assert with getSafe for index accessor 2024-07-09 14:47:42 -06:00
Brian L 2e6695de20 Update documentation and hit result cleanup 2024-07-09 13:50:39 -06:00
Brian L 888f611f45 Remove unneeded decltypes 2024-07-09 09:05:50 -06:00
Brian L 16d18a1ceb Remove duplicate implementations of ::readFile 2024-07-08 16:12:56 -06:00
Brian L 04f17a34dc Change some occurrences of double 1 to 1.0 2024-07-08 16:01:01 -06:00
Brian L 4f47b7b0fc update cullBackFaces doc 2024-07-08 15:35:04 -06:00
Brian L ca25ad4840 Change int to int32_t when specifying an ID 2024-07-08 15:15:44 -06:00
Brian L 728668a873 Merge branch 'main' into gltf-ray-intersect 2024-07-08 09:15:30 -06:00
Kevin Ring ff96b9b07a
Merge pull request #874 from CesiumGS/forced-assertions
Add ability to force assertions
2024-06-21 16:12:56 +10:00
Brian L 74653140f3 Rename to CESIUM_ASSERT 2024-06-20 10:14:38 -06:00
Brian L 91300f9a61 update from main 2024-06-20 09:54:52 -06:00
Brian L 6731089edc Add intentionally invalid models, and corresponding unit tests 2024-06-13 15:09:15 -06:00
Brian L df5a3a5581 Rework result of intersect function to include warnings for malformed gltfs 2024-06-13 14:47:52 -06:00
Brian L 1f6ac44834 Merge branch 'main' into gltf-ray-intersect 2024-06-12 16:22:01 -06:00
Brian L 7c291b5ea2 Add cube translation test generated from script 2024-06-12 16:13:32 -06:00
Brian L 7bdd2104a5 Change index component types for more unit test coverage 2024-06-12 16:06:29 -06:00
Brian L 31aeae754e Change iteration cadence to protect against incomplete triangles 2024-06-12 15:55:33 -06:00
Brian L 1854ecf55a Fix bug where first triangle in strip would get skipped 2024-06-12 15:48:19 -06:00
Brian L 7b58901bf3 Add support for gltf quantized mesh extension (non-float positions) 2024-06-12 15:34:07 -06:00
Brian L 2fd0b3a2c7 Add quantized cube test data 2024-06-12 10:44:17 -06:00
Ashley Rogers f332464b30 Merge with main 2024-06-06 16:57:20 -04:00
Ashley Rogers d961a40e3d Remove as many WGS84 defaults as possible. 2024-06-06 16:53:48 -04:00
Brian L dfea26831c Remove redundant move (build warning) 2024-05-31 13:38:14 -06:00
Brian L 5092d26ee6 More warnings fixes and cleanup 2024-05-31 12:57:02 -06:00
Brian L aa95514762 update from main 2024-05-31 12:39:37 -06:00
Brian L dcee2c8aab warning fix 2024-05-31 12:30:29 -06:00
Brian L b0b48bdee4 Update comments from peer review 2024-05-31 12:25:09 -06:00
Brian L 5d72dcf615 Fix bug where intersecting gltfs with nodes with different scaling could produce incorrect results
Also unify the ::intersectRayGltfModel and ::intersectRayGltfModelParametric functions. We don't really need two anymore
2024-05-31 12:22:46 -06:00
Brian L d4ec50da28 Add rejection of non-float positions 2024-05-31 10:38:38 -06:00
Brian L 402a485f6b Ignore float component types for index buffers 2024-05-31 10:13:24 -06:00
Brian L a9c5658242 Add checks for invalid indices. Fix casting for AccessorView operations 2024-05-31 09:46:07 -06:00
Brian L 905eb94912 let findClosestIndexedRayHit specify a templated AccessorView for indices, for clarity 2024-05-31 09:30:07 -06:00
Brian L 84eb49097c Use ::createAccessorView to clean up handling of index format variations 2024-05-31 09:17:36 -06:00
Sean Lilley fe64db3c94 Added removeUnusedMeshes and removeUnusedMaterials 2024-05-30 13:54:47 -04:00
Brian L 5a50038b88 Update code doc 2024-05-30 10:40:58 -06:00
Brian L cab5d1e843 Fix bug where a scaled gltf would produce incorrect hit results. Add test. 2024-05-30 10:32:41 -06:00
Brian L 9b0640dfca Update code doc 2024-05-28 11:00:54 -06:00
Brian L 1734847f9e Fix bug where ray AABB test would always miss (missing .transform call) 2024-05-28 10:50:54 -06:00
Kevin Ring eeab8694bf
Merge pull request #883 from CesiumGS/remove-unused-buffers
Added `removeUnusedBuffers`
2024-05-24 15:48:04 +10:00
Kevin Ring 95bf6826a0
Merge pull request #880 from CesiumGS/no_stb_image_implementation
Fix STB library conflicts
2024-05-24 15:47:11 +10:00
Kevin Ring 7a20339054 Eliminate some duplication, update CHANGES.md. 2024-05-24 14:26:39 +10:00
Brian L e3320e409e Add proper support for indexed triangle fans and enable test 2024-05-23 16:28:17 -06:00
Brian L 7ea3f2ec65 Add indexed triangle fan test cube 2024-05-23 16:09:35 -06:00
Brian L 13185615cd Add triangle fan support and enable test 2024-05-23 15:35:29 -06:00
Brian L aedb8cc6d7 Add proper support for indexed triangle strips and enable test 2024-05-23 15:15:24 -06:00