|
|
@ -247,6 +247,7 @@ export class Circle extends Curve
|
|
|
|
this.m_Radius = r;
|
|
|
|
this.m_Radius = r;
|
|
|
|
this.m_DrawEntity.forEach(obj =>
|
|
|
|
this.m_DrawEntity.forEach(obj =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
(<THREE.Line>obj).geometry.dispose();
|
|
|
|
let curve = new THREE.EllipseCurve(
|
|
|
|
let curve = new THREE.EllipseCurve(
|
|
|
|
this.m_Center.x, this.m_Center.y, // ax, aY
|
|
|
|
this.m_Center.x, this.m_Center.y, // ax, aY
|
|
|
|
this.m_Radius, this.m_Radius, // xRadius, yRadius
|
|
|
|
this.m_Radius, this.m_Radius, // xRadius, yRadius
|
|
|
@ -254,7 +255,7 @@ export class Circle extends Curve
|
|
|
|
false, // aClockwise
|
|
|
|
false, // aClockwise
|
|
|
|
0 // aRotation
|
|
|
|
0 // aRotation
|
|
|
|
);
|
|
|
|
);
|
|
|
|
let geometry = new THREE.Geometry().setFromPoints(curve.getPoints(8));
|
|
|
|
let geometry = new THREE.Geometry().setFromPoints(curve.getPoints(60));
|
|
|
|
(<THREE.Line>obj).geometry = geometry;
|
|
|
|
(<THREE.Line>obj).geometry = geometry;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -272,7 +273,7 @@ export class Circle extends Curve
|
|
|
|
false, // aClockwise
|
|
|
|
false, // aClockwise
|
|
|
|
0 // aRotation
|
|
|
|
0 // aRotation
|
|
|
|
);
|
|
|
|
);
|
|
|
|
let geometry = new THREE.Geometry().setFromPoints(curve.getPoints(8));
|
|
|
|
let geometry = new THREE.Geometry().setFromPoints(curve.getPoints(60));
|
|
|
|
var material = new THREE.LineBasicMaterial({ color: 0xff0000 });
|
|
|
|
var material = new THREE.LineBasicMaterial({ color: 0xff0000 });
|
|
|
|
var ellipse = new THREE.Line(geometry, material);
|
|
|
|
var ellipse = new THREE.Line(geometry, material);
|
|
|
|
this.m_DrawEntity.set(renderType, ellipse);
|
|
|
|
this.m_DrawEntity.set(renderType, ellipse);
|
|
|
|