File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 73
73
else path = "../pointclouds/" + name + "/ept.json" ;
74
74
}
75
75
76
+ var c = getQueryParam ( 'c' ) ;
76
77
Potree . loadPointCloud ( path , name , function ( e ) {
77
78
viewer . scene . addPointCloud ( e . pointcloud ) ;
78
79
79
80
let material = e . pointcloud . material ;
80
81
material . size = 1 ;
81
82
material . pointSizeType = Potree . PointSizeType . ADAPTIVE ;
83
+ if ( c ) material . activeAttributeName = c ;
82
84
83
85
viewer . fitToScreen ( 0.5 ) ;
84
86
} ) ;
Original file line number Diff line number Diff line change 73
73
else path = "../pointclouds/" + name + "/ept.json" ;
74
74
}
75
75
76
+ var c = getQueryParam ( 'c' ) ;
76
77
Potree . loadPointCloud ( path , name , function ( e ) {
77
78
viewer . scene . addPointCloud ( e . pointcloud ) ;
78
79
79
80
let material = e . pointcloud . material ;
80
81
material . size = 1 ;
81
82
material . pointSizeType = Potree . PointSizeType . ADAPTIVE ;
83
+ if ( c ) material . activeAttributeName = c ;
82
84
83
85
viewer . fitToScreen ( 0.5 ) ;
84
86
} ) ;
You can’t perform that action at this time.
0 commit comments