xzw 1 year ago
parent
commit
a804b139c5
2 changed files with 4 additions and 3 deletions
  1. 3 2
      public/static/lib/potree/potree.js
  2. 1 1
      public/static/lib/potree/potree.js.map

+ 3 - 2
public/static/lib/potree/potree.js

@@ -82271,8 +82271,9 @@ void main()
 	                    ray.set(nearPoint, cos>0?this.lineDir:this.lineDir.clone().negate());
 	                    let camDirPlane = new Plane().setFromNormalAndCoplanarPoint(dir,  eyePos); 
 	                    nearPoint = ray.ray.intersectPlane(camDirPlane, new Vector3()); 
-	                    
-	                    if(!nearPoint)console.error('no?',cos, this.lineDir, p1, p2, dir);
+	                    if(!nearPoint){//线是垂直的,视线是水平的时候 
+	                        return label.setPos(center) 
+	                    } 
 	                } 
 	                  
 	                  

File diff suppressed because it is too large
+ 1 - 1
public/static/lib/potree/potree.js.map