forked from 1b-agent/opencadstudio-upstream
feat(properties): fill spline Fit Tolerance + tangent rows from acadrust
The Fit Tolerance and Start/End Tangent X/Y/Z rows were placeholders while the pinned acadrust lacked those fields. Now that the bump exposes Spline::fit_tolerance / begin_tangent / end_tangent, populate them. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
147255aa40
commit
1043a3d561
1 file changed
+7
-7
@@ -183,13 +183,13 @@ fn properties(spline: &Spline) -> Vec<PropSection> {
|
||||
"fit_pt_z",
|
||||
format!("{:.4}", fp0.map(|p| p.z).unwrap_or(0.0)),
|
||||
),
|
||||
ro("Fit Tolerance", "fit_tolerance", String::new()),
|
||||
ro("Start Tangent X", "start_tan_x", String::new()),
|
||||
ro("Start Tangent Y", "start_tan_y", String::new()),
|
||||
ro("Start Tangent Z", "start_tan_z", String::new()),
|
||||
ro("End Tangent X", "end_tan_x", String::new()),
|
||||
ro("End Tangent Y", "end_tan_y", String::new()),
|
||||
ro("End Tangent Z", "end_tan_z", String::new()),
|
||||
ro("Fit Tolerance", "fit_tolerance", format!("{:.6}", spline.fit_tolerance)),
|
||||
ro("Start Tangent X", "start_tan_x", format!("{:.4}", spline.begin_tangent.x)),
|
||||
ro("Start Tangent Y", "start_tan_y", format!("{:.4}", spline.begin_tangent.y)),
|
||||
ro("Start Tangent Z", "start_tan_z", format!("{:.4}", spline.begin_tangent.z)),
|
||||
ro("End Tangent X", "end_tan_x", format!("{:.4}", spline.end_tangent.x)),
|
||||
ro("End Tangent Y", "end_tan_y", format!("{:.4}", spline.end_tangent.y)),
|
||||
ro("End Tangent Z", "end_tan_z", format!("{:.4}", spline.end_tangent.z)),
|
||||
],
|
||||
},
|
||||
PropSection {
|
||||
|
||||
Reference in new issue
Block a user