forked from 1b-agent/opencadstudio-upstream
Compact redundant polynomial knots after order elevation
This commit is contained in:
1 parent
7181770c73
commit
ed6e962b78
1 file changed
+2
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user