fix: handle degenerate local G2 derivative hulls

This commit is contained in:
梁薄云
2026-07-30 17:53:37 +08:00
parent 9edb80e552
commit 879e30a025
2 changed files with 66 additions and 2 deletions
@@ -62,6 +62,10 @@ $interiorDerivative = Invoke-Scenario 'InteriorStationaryCurve'
Assert-True $interiorDerivative.Rejected `
'A curve with a stationary interior derivative must be rejected even when its endpoint chord is short.'
$constantVelocity = Invoke-Scenario 'ConstantVelocityCurve'
Assert-True $constantVelocity.Accepted `
'A nonstationary constant-velocity curve with collinear derivative controls must be accepted.'
$exactSplice = Invoke-Scenario 'ExactSpliceEndpoints'
Assert-True $exactSplice.EndpointsAreExact `
'Splicing must write interpolated exact endpoints instead of accepting approximate candidate endpoints.'