|
|
@ -32,7 +32,7 @@ export class Shape2 extends Shape
|
|
|
|
let splitCount = tempArc.Radius / ARC_SplitLength;
|
|
|
|
let splitCount = tempArc.Radius / ARC_SplitLength;
|
|
|
|
splitCount = clamp(Math.floor(splitCount * 0.5) * 2, Arc_MinSplitCount, ARC_MaxSplitCount);
|
|
|
|
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
|
|
|
|
else
|
|
|
|
resolution = divisions * 2;
|
|
|
|
resolution = divisions * 2;
|
|
|
|