|
|
@ -172,6 +172,17 @@ export class PreViewer
|
|
|
|
geometry.computeLineDistances();
|
|
|
|
geometry.computeLineDistances();
|
|
|
|
return new THREE.Line(geometry, material);
|
|
|
|
return new THREE.Line(geometry, material);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//绘制×光标
|
|
|
|
|
|
|
|
DrawCross(size: number, material?: THREE.LineBasicMaterial | THREE.LineDashedMaterial): THREE.Line[]
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
this.DrawLine(new THREE.Vector3(0, 0, 0), new THREE.Vector3(0, -size, 0), material),
|
|
|
|
|
|
|
|
this.DrawLine(new THREE.Vector3(0, 0, 0), new THREE.Vector3(0, size, 0), material),
|
|
|
|
|
|
|
|
this.DrawLine(new THREE.Vector3(0, 0, 0), new THREE.Vector3(size, 0, 0), material),
|
|
|
|
|
|
|
|
this.DrawLine(new THREE.Vector3(0, 0, 0), new THREE.Vector3(-size, 0, 0), material)
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
DrawLineFromWcs(p1: THREE.Vector3, p2: THREE.Vector3, material?: THREE.LineBasicMaterial | THREE.LineDashedMaterial): THREE.Line
|
|
|
|
DrawLineFromWcs(p1: THREE.Vector3, p2: THREE.Vector3, material?: THREE.LineBasicMaterial | THREE.LineDashedMaterial): THREE.Line
|
|
|
|
{
|
|
|
|
{
|
|
|
|
material = material ? material : this.m_LineMaterial;
|
|
|
|
material = material ? material : this.m_LineMaterial;
|
|
|
|