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