Commit Graph

176 Commits

Author SHA1 Message Date
241f070769 Suppress a stupid warning 2024-09-14 13:27:31 +03:00
5f866737a8 Replace a diverging match with an if let 2024-09-14 13:13:22 +03:00
ee2d7d1b67 Merge two subspace matchings 2024-09-14 13:10:26 +03:00
5835549503 Merge branch 'mesh' 2024-07-02 12:08:09 +03:00
97c089a7bc Port to GLAM 2024-07-02 12:06:21 +03:00
09299b05a4 Move to subdirs 2024-07-02 12:06:21 +03:00
abf6a857a4 Everything for the tests! 2024-07-01 12:00:55 +03:00
a9685c81fd Extract CS management into a file 2024-06-30 15:38:27 +03:00
54aa1369ab Clean the imports up 2024-06-30 15:37:11 +03:00
fce3203859 Reduce MetricCS API 2024-06-30 15:37:09 +03:00
e3d068579c Unify Ray and Location transforms 2024-06-30 15:35:52 +03:00
150f81f03b Bugfix! 2024-06-30 12:34:00 +03:00
ffc74ef09b Drop useless default implementations 2024-06-30 12:33:55 +03:00
d515054281 Unify FCS<Ray> 2024-06-30 12:33:46 +03:00
1c96c87173 Unify FCS<Location> 2024-06-30 12:24:27 +03:00
b58dcbd4a9 Bugfix! 2024-06-30 12:13:57 +03:00
dff3f94f68 Implement missing OuterCS APIs, and test them 2024-06-30 12:07:09 +03:00
95d46b24c8 Implement missing InnerCS APIs, and test them 2024-06-30 11:52:50 +03:00
382ce16822 Remove the linear limiter as not smooth enough 2024-06-29 00:39:11 +03:00
88bfae9608 Unify limiters 2024-06-29 00:38:50 +03:00
75a6da9cae Use smoothsteper to smoothen the metric even more
Apparently it wants more derivatives than are explicitly used
2024-06-29 00:00:33 +03:00
3fb8bf42b7 Use smmothstep to smoothen the metric 2024-06-28 23:50:01 +03:00
acb4bb75fa Add tests for the metric itself
That wasn’t all that hard like I expected as I actually know what I *want* the metric to do so, can test just that.
2024-06-28 23:14:35 +03:00
0a27fc1f9b Moddy the Tube test 2024-06-28 22:34:16 +03:00
e8551f5d02 Unify tracing in different CSes 2024-06-28 15:32:35 +03:00
08dba8e1dd Use unified coordinate handling as unified 2024-06-28 15:19:24 +03:00
b9cf26701c Drop unused code 2024-06-28 15:19:02 +03:00
41448d2226 Unify flat coordinate system handling 2024-06-28 15:10:53 +03:00
64344659e3 Remove a useless wrapper 2024-06-28 14:59:28 +03:00
0cf6b5b1fb Remove redundant code 2024-06-28 14:54:30 +03:00
c49a3ea241 Test for the bugfix 2024-06-28 14:54:00 +03:00
15a28df2ed Bugfix! 2024-06-27 12:58:45 +03:00
c2922d5fe1 Keep limit as an Option one level deeper 2024-06-27 12:53:28 +03:00
b5c57babb4 Extract flat coordinate system handling 2024-06-25 20:28:09 +03:00
7f560a2b49 Rename “outer” to “global” as that’s what it is 2024-06-25 20:11:25 +03:00
a31a950eca Unify coordinate mapping 2024-06-25 19:56:29 +03:00
2515c0a0da Simplify code 2024-06-25 13:31:39 +03:00
4caa260a34 Remove single-implementation traits 2024-06-25 13:20:52 +03:00
0cddb8798d Move basic types to a module 2024-06-25 13:14:48 +03:00
13da06b294 Publish structs 2024-06-25 13:07:03 +03:00
455b69d447 Extract the implementation to a module 2024-06-25 13:04:36 +03:00
84068a5a13 Move Tube to a file 2024-06-25 12:16:31 +03:00
ad107a6910 Have fun! 2024-06-25 12:06:56 +03:00
dd054e9016 Move stuff around 2024-06-25 11:29:33 +03:00
0ae05fd730 Rename stuff to what it is, not how it’s used 2024-06-13 15:53:20 +03:00
844c974ed4 Use Rust formatting 2024-06-13 15:32:44 +03:00
5cdc97951b Test TubeX as well 2024-06-13 13:26:02 +03:00
b4f7a3045b Move fns:: test to a submodule 2024-06-11 14:21:52 +03:00
f2e2767156 Test tube length 2024-06-11 14:21:52 +03:00
8ad9f04ece Test code cleanup 2024-06-11 14:21:52 +03:00
22339fb331 Remove an obsolete test 2024-06-11 14:21:52 +03:00
ededa1be50 Extend the tube-Y test 2024-06-11 13:56:11 +03:00
4feaf2428e Another rename 2024-06-11 13:52:29 +03:00
6c7c936ead Oops... I had that function already... 2024-06-11 13:50:02 +03:00
53075e0906 The Big Rename 2024-06-11 13:43:59 +03:00
ae152f6d7d Better test failure message 2024-06-11 00:42:47 +03:00
ce86e2a95c Minor cleanup 2024-06-11 00:37:25 +03:00
cf425a34b6 Unify listing objects 2024-06-11 00:34:34 +03:00
cac83b9003 Neat? 2024-06-11 00:29:16 +03:00
0a4078d4f3 Join object hitting halves together 2024-06-11 00:23:36 +03:00
8e31359a69 Unify object hitting code 2024-06-11 00:14:44 +03:00
39a4ee5824 Update object.loc in list_objects_inner to reflect the coordinate system change 2024-06-11 00:02:43 +03:00
17ed87035a Expose the fact dx and du are linear 2024-06-11 00:02:09 +03:00
fdc4e22da0 Record relative ray direction on hit 2024-06-10 23:30:38 +03:00
d5c2e34157 Unify some code 2024-06-10 22:58:52 +03:00
932029b064 Properly calculate relative hit position for rotated objects 2024-06-10 22:58:42 +03:00
3dec491bb5 Record relative hit position 2024-06-10 22:22:50 +03:00
5947a6e324 Draw smoother lines in the inner region 2024-06-10 20:16:17 +03:00
4b511af742 Hit objects in the inner region 2024-06-10 20:04:53 +03:00
9ec5f17754 Hit objects from different space regions 2024-06-10 19:50:39 +03:00
11e48580b9 Test that new code 2024-06-10 17:28:33 +03:00
3f7a1b7173 More code uniformity 2024-06-10 16:53:37 +03:00
1de98d9550 Extract a module 2024-06-10 16:15:26 +03:00
1dfc5bad0e More cleanup 2024-06-10 15:37:23 +03:00
7890107832 Neater code 2024-06-10 15:30:47 +03:00
4e6c3b19ae Split the metric into two functions 2024-06-10 15:29:57 +03:00
08fbff38fa Rotate the view 2024-06-10 15:28:55 +03:00
e8fdd5f338 Nerdy! 2024-06-10 14:52:57 +03:00
69cc1904a8 Trace all objects hit 2024-06-10 00:36:38 +03:00
ab5446385b Smoother circles 2024-06-10 00:10:31 +03:00
b22c36a983 Cleanup math 2024-06-10 00:10:22 +03:00
aa6779ff4b Cleanup 2024-06-09 23:30:37 +03:00
c6591e7455 Use proper coordinate adjustments in the objects 2024-06-09 23:29:18 +03:00
f3288c7331 Move multiplication out of flat-global vector conversion
The conversion is necessarily linear so...
2024-06-09 23:23:26 +03:00
2b7ae9485b Implement partial derivatives explicitly, for better precision 2024-06-09 23:13:20 +03:00
1f960e3726 Improve precision
That thing is divided by, so better make it a power of two to make the division exact.
2024-06-09 22:07:42 +03:00
e840b3f47b Trace to objects 2024-06-09 21:47:25 +03:00
3362df4109 Nicer visuals 2024-06-09 21:47:10 +03:00
978138c780 Pull the distance a level out 2024-06-09 20:59:28 +03:00
2c47c66b60 Add objects 2024-06-09 20:24:19 +03:00
c510a3fc70 Remove unused code 2024-06-09 20:10:00 +03:00
196d387c1f Object samples 2024-05-27 20:17:54 +03:00
073292b9de +1 track 2024-05-27 19:44:33 +03:00
6fd15f9422 Use the fancy functions
It is not as beautiful as it could be but... looks OK for now
2024-05-27 19:44:28 +03:00
355416764f Extract DT a level up 2024-05-27 19:34:14 +03:00
23cddeb940 Split! 2024-05-27 19:24:12 +03:00
a82441677d Functional tracer 2024-05-27 19:16:59 +03:00
716fe65841 Extra tracers 2024-05-27 19:16:40 +03:00
33c51e425b Nicer 2024-05-27 19:16:30 +03:00
1cf2518568 Add comments 2024-05-27 19:15:37 +03:00