bug fixes

This commit is contained in:
rajgandhi1 2025-05-21 15:19:12 +05:30
parent 4bea90d9d8
commit c4c3cff9af
4 changed files with 4 additions and 2 deletions

1
Cargo.lock generated
View File

@ -1366,6 +1366,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"cuboid",
"fj",
]

View File

@ -4,7 +4,7 @@ use fj::{Args, Instance};
#[derive(Parser)]
struct Parameters {
/// Size of the cuboid, as a comma-separated vector `x,y,z`
#[arg(long, value_parser = parse_vector_3)]
#[arg(long, value_parser = parse_vector_3, default_value = "1,1,1")]
size: [f64; 3],
#[command(flatten)]

View File

@ -11,3 +11,4 @@ path = "src/main.rs"
fj = { path = "../../crates/fj" }
clap = { version = "4.5", features = ["derive"] }
anyhow = "1.0"
cuboid = { path = "../cuboid" }

View File

@ -13,7 +13,7 @@ pub fn model(radius: impl Into<Scalar>, core: &mut fj::core::Core) -> Solid {
let radius = radius.into();
let size = radius * 4.;
let cuboid = cuboid::model([size * 2., size, size], core);
let cuboid = ::cuboid::model([size * 2., size, size], core);
cuboid.update_shell(
cuboid.shells().only(),