You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust/kcl-lib/src/std/fillet.rs
+57-33Lines changed: 57 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -82,43 +82,67 @@ async fn inner_fillet(
82
82
exec_state:&mutExecState,
83
83
args:Args,
84
84
) -> Result<Box<Solid>,KclError>{
85
+
// If you try and tag multiple edges with a tagged fillet, we want to return an
86
+
// error to the user that they can only tag one edge at a time.
87
+
if tag.is_some() && tags.len() > 1{
88
+
returnErr(KclError::Type(KclErrorDetails{
89
+
message:"You can only tag one edge at a time with a tagged fillet. Either delete the tag for the fillet fn if you don't need it OR separate into individual fillet functions for each tag.".to_string(),
90
+
source_ranges:vec![args.source_range],
91
+
backtrace:Default::default(),
92
+
}));
93
+
}
94
+
if tags.is_empty(){
95
+
returnErr(KclError::Semantic(KclErrorDetails{
96
+
source_ranges:vec![args.source_range],
97
+
message:"You must fillet at least one tag".to_owned(),
98
+
backtrace:Default::default(),
99
+
}));
100
+
}
101
+
85
102
letmut solid = solid.clone();
86
-
for edge_tag in tags {
87
-
let edge_id = edge_tag.get_engine_id(exec_state,&args)?;
0 commit comments