清理代码

pull/712061/MERGE
ChenX 7 years ago
parent e920838d63
commit 3c6177eeb9

@ -57,7 +57,7 @@ export class Region extends Entity
private GeneralShape()
{
this.m_Shape = new THREE.Shape();
let begin: Vector3 = new Vector3();
let begin: Vector3;
if (this.m_CuList.length > 1)
{
let firstL = this.m_CuList[0];
@ -73,9 +73,12 @@ export class Region extends Entity
}
this.m_Shape.moveTo(begin.x, begin.y);
}
else
begin = new Vector3();
for (let cu of this.m_CuList)
{
if (begin && cu.EndPoint.distanceTo(begin) < fuzz)
if (cu.EndPoint.distanceTo(begin) < fuzz)
cu.Reverse();
//设置起点
begin.copy(cu.EndPoint);

Loading…
Cancel
Save