This commit is contained in:
Kurt Hutten Irev-Dev
2025-02-05 12:50:58 +11:00
parent e063622139
commit ced49f8ddc
2 changed files with 10 additions and 1 deletions

View File

@ -1193,6 +1193,15 @@ impl<'a> FromKclValue<'a> for super::shapes::CircleData {
}
}
impl<'a> FromKclValue<'a> for super::sketch::TangentialArcData {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
let obj = arg.as_object()?;
let_field_of!(obj, radius);
let_field_of!(obj, offset);
Some(Self::RadiusAndOffset { radius, offset })
}
}
impl<'a> FromKclValue<'a> for crate::execution::Point3d {
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
// Case 1: object with x/y/z fields

View File

@ -238,7 +238,7 @@ pub(crate) async fn do_post_extrude(
Path::Arc { .. }
| Path::TangentialArc { .. }
| Path::TangentialArcTo { .. }
| Path::Circle { .. }
| Path::Circle { .. }
| Path::CircleThreePoint { .. } => {
let extrude_surface = ExtrudeSurface::ExtrudeArc(crate::execution::ExtrudeArc {
face_id: *actual_face_id,