mirror of
https://github.com/hannobraun/Fornjot
synced 2025-10-07 16:38:13 +00:00
bug fixes
This commit is contained in:
parent
4bea90d9d8
commit
c4c3cff9af
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1366,6 +1366,7 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
"cuboid",
|
||||
"fj",
|
||||
]
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -11,3 +11,4 @@ path = "src/main.rs"
|
||||
fj = { path = "../../crates/fj" }
|
||||
clap = { version = "4.5", features = ["derive"] }
|
||||
anyhow = "1.0"
|
||||
cuboid = { path = "../cuboid" }
|
||||
|
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user