Compact redundant polynomial knots after order elevation

This commit is contained in:
ramox81 committed 2026-09-11 12:33:49 +03:00
1 parent 7181770c73
commit ed6e962b78
1 file changed
+2 -1
+2 -1
View File
@@ -113,7 +113,8 @@ impl SplineditCommand {
source.control_points.iter().map(|point| [point.x, point.y, point.z]).collect(),
source.knots.clone(), weights)?
.with_periodicity(source.flags.closed || source.flags.periodic)
.elevated(degree - current)?;
.elevated(degree - current)?
.compact_knots(source.control_tolerance.max(1e-9))?;
let mut result = source.clone();
result.degree = curve.degree() as i32;
result.control_points = curve.control_points().iter().map(|point| Vector3::new(point[0], point[1], point[2])).collect();