排钻显示改成实体显示.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
|
||||
import * as THREE from "three";
|
||||
import { Mesh } from "three";
|
||||
import { CameraControls, PointPick, boardMaterial, selectMaterial } from ".";
|
||||
import { CameraUpdate } from "./CameraUpdate";
|
||||
import { ColorMaterial } from "./ColorPalette";
|
||||
import { GetBox, GetBoxArr, cZeroVec } from "./GeUtils";
|
||||
import { PlaneExt } from "./PlaneExt";
|
||||
import { PointPick, boardMaterial, CameraControls, selectMaterial } from ".";
|
||||
import { MeshBasicMaterial, Color, Mesh } from "three";
|
||||
|
||||
export class Viewer
|
||||
{
|
||||
@@ -38,7 +39,7 @@ export class Viewer
|
||||
let mesh = PointPick(this, e.offsetX, e.offsetY);
|
||||
if (oldMesh)
|
||||
oldMesh.material = boardMaterial;
|
||||
if (mesh)
|
||||
if (mesh && mesh.material !== ColorMaterial.GetLineMaterial(1))
|
||||
{
|
||||
oldMesh = mesh;
|
||||
mesh.material = selectMaterial;
|
||||
|
||||
Reference in New Issue
Block a user