Skip to content

Commit

Permalink
add tiny truck-only test to main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MattFerraro committed May 18, 2024
1 parent c55a623 commit b46442f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/cadmium/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,21 @@ use truck_shapeops::{and, or, ShapeOpsCurve, ShapeOpsSurface};
use truck_topology::{Shell, Solid};

fn main() {
stacked_cubes();
truck_test();
// stacked_cubes();
}

fn truck_test() {
let point_a = vertex(Point3::new(0.0, 0.0, 0.0));
let line_a = tsweep(&point_a, Vector3::new(1.0, 0.0, 0.0));
let square_a = tsweep(&line_a, Vector3::new(0.0, 1.0, 0.0));
let cube_a = tsweep(&square_a, Vector3::new(0.0, 0.0, 1.0));

let result = serde_json::to_string(&cube_a);
match result {
Ok(json) => println!("{}", json),
Err(e) => println!("Error: {}", e),
}
}

fn stacked_cubes() {
Expand Down

0 comments on commit b46442f

Please sign in to comment.