prepare change in fillet api (#5168)
* updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * bump version Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * more snaps Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
6
src/wasm-lib/Cargo.lock
generated
6
src/wasm-lib/Cargo.lock
generated
@ -1710,7 +1710,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kcl-lib"
|
name = "kcl-lib"
|
||||||
version = "0.2.30"
|
version = "0.2.31"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"approx 0.5.1",
|
"approx 0.5.1",
|
||||||
@ -1844,9 +1844,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kittycad-modeling-cmds"
|
name = "kittycad-modeling-cmds"
|
||||||
version = "0.2.92"
|
version = "0.2.93"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c5fc91d0cdacd1c2ba906f564e58ce07c70a5c471f19b0f4c0b67e754077bfdc"
|
checksum = "67a993046541732e3c3ddd8a0364b55b7b138a9258beff353b6e7a043a41dce3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -76,7 +76,7 @@ members = [
|
|||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
http = "1"
|
http = "1"
|
||||||
kittycad = { version = "0.3.28", default-features = false, features = ["js", "requests"] }
|
kittycad = { version = "0.3.28", default-features = false, features = ["js", "requests"] }
|
||||||
kittycad-modeling-cmds = { version = "0.2.92", features = [
|
kittycad-modeling-cmds = { version = "0.2.93", features = [
|
||||||
"ts-rs",
|
"ts-rs",
|
||||||
"websocket",
|
"websocket",
|
||||||
] }
|
] }
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kcl-lib"
|
name = "kcl-lib"
|
||||||
description = "KittyCAD Language implementation and tools"
|
description = "KittyCAD Language implementation and tools"
|
||||||
version = "0.2.30"
|
version = "0.2.31"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/KittyCAD/modeling-app"
|
repository = "https://github.com/KittyCAD/modeling-app"
|
||||||
|
@ -143,10 +143,8 @@ async fn inner_chamfer(
|
|||||||
radius: LengthUnit(data.length),
|
radius: LengthUnit(data.length),
|
||||||
tolerance: LengthUnit(DEFAULT_TOLERANCE), // We can let the user set this in the future.
|
tolerance: LengthUnit(DEFAULT_TOLERANCE), // We can let the user set this in the future.
|
||||||
cut_type: CutType::Chamfer,
|
cut_type: CutType::Chamfer,
|
||||||
// We pass in the command id as the face id.
|
// We make this a none so that we can remove it in the future.
|
||||||
// So the resulting face of the fillet will be the same.
|
face_id: None,
|
||||||
// This is because that's how most other endpoints work.
|
|
||||||
face_id: Some(id),
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
@ -152,10 +152,8 @@ async fn inner_fillet(
|
|||||||
radius: LengthUnit(data.radius),
|
radius: LengthUnit(data.radius),
|
||||||
tolerance: LengthUnit(data.tolerance.unwrap_or(default_tolerance(&args.ctx.settings.units))),
|
tolerance: LengthUnit(data.tolerance.unwrap_or(default_tolerance(&args.ctx.settings.units))),
|
||||||
cut_type: CutType::Fillet,
|
cut_type: CutType::Fillet,
|
||||||
// We pass in the command id as the face id.
|
// We make this a none so that we can remove it in the future.
|
||||||
// So the resulting face of the fillet will be the same.
|
face_id: None,
|
||||||
// This is because that's how most other endpoints work.
|
|
||||||
face_id: Some(id),
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
@ -661,8 +661,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 5.0,
|
"radius": 5.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -654,8 +654,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -671,8 +670,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -654,8 +654,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -671,8 +670,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -654,8 +654,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -654,8 +654,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -640,8 +640,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -657,8 +656,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 2.0,
|
"radius": 2.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -2487,8 +2487,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 1.0,
|
"radius": 1.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2504,8 +2503,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 1.0,
|
"radius": 1.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2521,8 +2519,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 1.0,
|
"radius": 1.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2538,8 +2535,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 1.0,
|
"radius": 1.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -782,8 +782,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 5.0,
|
"radius": 5.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -799,8 +798,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 5.0,
|
"radius": 5.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1009,8 +1007,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 5.0,
|
"radius": 5.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1026,8 +1023,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 5.0,
|
"radius": 5.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -675,8 +675,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 20.0,
|
"radius": 20.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -692,8 +691,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 50.0,
|
"radius": 50.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "chamfer",
|
"cut_type": "chamfer"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -709,8 +707,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 50.0,
|
"radius": 50.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "chamfer",
|
"cut_type": "chamfer"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -675,8 +675,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 20.0,
|
"radius": 20.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -692,8 +691,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 50.0,
|
"radius": 50.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "chamfer",
|
"cut_type": "chamfer"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -709,8 +707,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 50.0,
|
"radius": 50.0,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "chamfer",
|
"cut_type": "chamfer"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -766,8 +766,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 0.25,
|
"radius": 0.25,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -783,8 +782,7 @@ snapshot_kind: text
|
|||||||
"edge_id": "[uuid]",
|
"edge_id": "[uuid]",
|
||||||
"radius": 0.5707134902949093,
|
"radius": 0.5707134902949093,
|
||||||
"tolerance": 0.0000001,
|
"tolerance": 0.0000001,
|
||||||
"cut_type": "fillet",
|
"cut_type": "fillet"
|
||||||
"face_id": "[uuid]"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user