|
@@ -82488,16 +82488,13 @@ void main()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if(this.measureType == 'MulDistance_shape'){
|
|
|
|
- if(absoluteState){
|
|
|
|
- if(hoverObject == 'single'){
|
|
|
|
- marker.material = this.getMarkerMaterial('select'); //路径选中后marker是非选中状态, 但是颜色一样
|
|
|
|
- }else {
|
|
|
|
- marker.material = this.getMarkerMaterial('default');
|
|
|
|
- }
|
|
|
|
|
|
+ if(this.measureType == 'MulDistance_shape'){
|
|
|
|
+ if(state == 'hover' && hoverObject == 'single'){
|
|
|
|
+ marker.material = this.getMarkerMaterial('select'); //路径选中后marker是非选中状态, 但是颜色一样
|
|
}else {
|
|
}else {
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ marker.material = this.getMarkerMaterial('default');
|
|
|
|
+ }
|
|
|
|
+
|
|
}else {
|
|
}else {
|
|
if(absoluteState){
|
|
if(absoluteState){
|
|
marker.material = this.getMarkerMaterial('select');
|
|
marker.material = this.getMarkerMaterial('select');
|
|
@@ -91309,7 +91306,8 @@ void main()
|
|
const Colors = {
|
|
const Colors = {
|
|
black : '#161A1A',
|
|
black : '#161A1A',
|
|
blue: '#3290ff',
|
|
blue: '#3290ff',
|
|
- gray: '#878585' ,
|
|
|
|
|
|
+ gray: '#f6f6f6' ,
|
|
|
|
+ grayDeep:'#f3f3f3',
|
|
white:'#ffffff'
|
|
white:'#ffffff'
|
|
};
|
|
};
|
|
|
|
|
|
@@ -91320,10 +91318,10 @@ void main()
|
|
|
|
|
|
class base{
|
|
class base{
|
|
constructor(){
|
|
constructor(){
|
|
- this.faceDefaultColor = Colors.black;//14936556,
|
|
|
|
- this.wireframeDefaultColor = 13421772,
|
|
|
|
|
|
+ this.faceDefaultColor = Colors.gray;//14936556,
|
|
|
|
+ /* this.wireframeDefaultColor = 13421772,
|
|
this.faceHighlightColor = 12255212,
|
|
this.faceHighlightColor = 12255212,
|
|
- this.wireframeHighlightColor = 3330982;
|
|
|
|
|
|
+ this.wireframeHighlightColor = 3330982 */
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -91334,7 +91332,7 @@ void main()
|
|
n[o++] = s + 1;
|
|
n[o++] = s + 1;
|
|
var r = new MeshBasicMaterial({
|
|
var r = new MeshBasicMaterial({
|
|
color: this.faceDefaultColor,
|
|
color: this.faceDefaultColor,
|
|
- side: DoubleSide
|
|
|
|
|
|
+ side: DoubleSide,
|
|
})
|
|
})
|
|
, a = new Float32Array(3 * e.length);
|
|
, a = new Float32Array(3 * e.length);
|
|
t.setAttribute("position", new BufferAttribute(a,3).copyVector3sArray(e)),
|
|
t.setAttribute("position", new BufferAttribute(a,3).copyVector3sArray(e)),
|
|
@@ -91346,7 +91344,7 @@ void main()
|
|
|
|
|
|
createWireframe(e ) {
|
|
createWireframe(e ) {
|
|
let line = LineDraw.createFatLine(e,{
|
|
let line = LineDraw.createFatLine(e,{
|
|
- color: Colors.white ,
|
|
|
|
|
|
+ color: Colors.grayDeep ,
|
|
lineWidth : 2,
|
|
lineWidth : 2,
|
|
viewer: navCubeViewer,
|
|
viewer: navCubeViewer,
|
|
depthTest:true, depthWrite:true,
|
|
depthTest:true, depthWrite:true,
|
|
@@ -91662,8 +91660,8 @@ void main()
|
|
side: DoubleSide,
|
|
side: DoubleSide,
|
|
transparent: !1,
|
|
transparent: !1,
|
|
uniforms:{
|
|
uniforms:{
|
|
- faceColor: {type:'v3', value: new Color(Colors.black) } ,
|
|
|
|
- textColor: {type:'v3', value: new Color(Colors.white) } ,
|
|
|
|
|
|
+ faceColor: {type:'v3', value: new Color(Colors.white) } ,
|
|
|
|
+ textColor: {type:'v3', value: new Color(Colors.black) } ,
|
|
map: {type: 't', value: this.texture },
|
|
map: {type: 't', value: this.texture },
|
|
},
|
|
},
|
|
vertexShader:`
|
|
vertexShader:`
|
|
@@ -91858,7 +91856,7 @@ void main()
|
|
});
|
|
});
|
|
faceMesh.addEventListener('mouseleave', (e)=>{
|
|
faceMesh.addEventListener('mouseleave', (e)=>{
|
|
if(viewer.mainViewport.view.isFlying())return
|
|
if(viewer.mainViewport.view.isFlying())return
|
|
- faceMesh.material.uniforms.faceColor.value.set(Colors.black);
|
|
|
|
|
|
+ faceMesh.material.uniforms.faceColor.value.set(Colors.white);
|
|
//console.log('回', name)
|
|
//console.log('回', name)
|
|
navCubeViewer.dispatchEvent('content_changed');
|
|
navCubeViewer.dispatchEvent('content_changed');
|
|
});
|
|
});
|
|
@@ -91874,7 +91872,7 @@ void main()
|
|
}
|
|
}
|
|
|
|
|
|
navCubeViewer.switchView('ortho', dir, ()=>{
|
|
navCubeViewer.switchView('ortho', dir, ()=>{
|
|
- faceMesh.material.uniforms.faceColor.value.set(Colors.black);
|
|
|
|
|
|
+ faceMesh.material.uniforms.faceColor.value.set(Colors.white);
|
|
viewer.dispatchEvent({type:'viewChanged', name });
|
|
viewer.dispatchEvent({type:'viewChanged', name });
|
|
});
|
|
});
|
|
faceMesh.material.uniforms.faceColor.value.set(Colors.blue);
|
|
faceMesh.material.uniforms.faceColor.value.set(Colors.blue);
|
|
@@ -91939,6 +91937,7 @@ void main()
|
|
class NavCubeViewer extends ViewerBase{
|
|
class NavCubeViewer extends ViewerBase{
|
|
constructor(domElement, listenViewport){
|
|
constructor(domElement, listenViewport){
|
|
super(domElement, {name:'navCube', antialias:true/* , preserveDrawingBuffer:true */} );
|
|
super(domElement, {name:'navCube', antialias:true/* , preserveDrawingBuffer:true */} );
|
|
|
|
+ domElement.style.opacity = 0.9;
|
|
|
|
|
|
navCubeViewer = this;
|
|
navCubeViewer = this;
|
|
this.scene = new Scene;
|
|
this.scene = new Scene;
|