diff --git a/__test__/Geometry/__snapshots__/EdgeGeometry.test.ts.snap b/__test__/Geometry/__snapshots__/EdgeGeometry.test.ts.snap index ac928ce0f..5718b882a 100644 --- a/__test__/Geometry/__snapshots__/EdgeGeometry.test.ts.snap +++ b/__test__/Geometry/__snapshots__/EdgeGeometry.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`EdgeGeometry生成 1`] = `236`; +exports[`EdgeGeometry生成 1`] = `148`; exports[`EdgeGeometry生成 2`] = `410`; diff --git a/src/DatabaseServices/Shape2.ts b/src/DatabaseServices/Shape2.ts index 0090cf478..f983940a4 100644 --- a/src/DatabaseServices/Shape2.ts +++ b/src/DatabaseServices/Shape2.ts @@ -32,7 +32,7 @@ export class Shape2 extends Shape let splitCount = tempArc.Radius / ARC_SplitLength; splitCount = clamp(Math.floor(splitCount * 0.5) * 2, Arc_MinSplitCount, ARC_MaxSplitCount); - resolution = Math.max(2, Math.abs(Math.ceil((tempArc.AllAngle * 0.5) / Math.PI)) * splitCount); + resolution = Math.max(2, Math.ceil(Math.abs((tempArc.AllAngle * 0.5) / Math.PI) * splitCount * 0.5)) * 2; } else resolution = divisions * 2;