diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/main.rs b/src/main.rs index 3e0a55d..a9e9909 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,16 +65,17 @@ impl View { } fn try_main() -> Result<(), String> { - use sdf::{Constant, R3ToR, R3ToR3, RToR}; - let _test = Constant::gen_thread_random(); - println!("{_test:?}"); - - let funciton = R3ToR::compose( - R3ToR3::InfiniteMirrors(Constant::from(2.0)), - R3ToR::sphere_f32(0.2), - RToR::Identity, - ); - let my_sdf = sdf::Sdf::from_function(funciton); +// use sdf::{Constant, R3ToR, R3ToR3, RToR}; +// let _test = Constant::gen_thread_random(); +// println!("{_test:?}"); +// +// let funciton = R3ToR::compose( +// R3ToR3::InfiniteMirrors(Constant::from(2.0)), +// R3ToR::sphere_f32(0.2), +// RToR::Identity, +// ); + let my_sdf = sdf::Sdf::gen_thread_random_max_depth(6); + println!("{my_sdf:?}"); let mut window = win::Window::new("AutoSDF", 1280, 720, true) .map_err(|e| format!("Error creating window: {e}"))?; |