修复:面域并集在某些情况下错误

pull/2404/head
ChenX 1 year ago
parent 82fa8eab1f
commit 6d86d12f83

@ -1,3 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`并集错误,错误的曲线包含 1`] = `"20000.01000"`; exports[`并集错误,错误的曲线包含 1`] = `"20000.01000"`;
exports[`并集错误midparam错误 1`] = `"24331.20499"`;
exports[`并集错误midparam错误 2`] = `"1"`;

File diff suppressed because one or more lines are too long

@ -283,7 +283,7 @@ export class Contour
{ {
//方向相同 //方向相同
if ( if (
equalv3(cu.GetFirstDeriv(cu.EndParam * 0.5).normalize(), pl.GetFirstDeriv(pl.EndParam * 0.5).normalize(), 1e-3) equalv3(cu.GetFirstDeriv(cu.MidParam).normalize(), pl.GetFirstDeriv(pl.MidParam).normalize(), 1e-3)
=== isEqualNormal === isEqualNormal
) )
{ {

Loading…
Cancel
Save