|
@@ -872,7 +872,7 @@ export class TiledMapFromEntity extends TiledMapBase{
|
|
|
|
|
|
data.id = e.id
|
|
data.id = e.id
|
|
data.globalLocation = Potree.Utils.VectorFactory.fromArray3(e.location)
|
|
data.globalLocation = Potree.Utils.VectorFactory.fromArray3(e.location)
|
|
- data.orientation = Potree.Utils.QuaternionFactory.fromArray(e.orientation)
|
|
|
|
|
|
+ data.orientation = Potree.Utils.QuaternionFactory.fromArray(e.orientation) //数据集支持其他方向旋转后不用这个了
|
|
|
|
|
|
|
|
|
|
let pointcloud = viewer.scene.pointclouds.find(p=>p.dataset_id == e.datasetId)
|
|
let pointcloud = viewer.scene.pointclouds.find(p=>p.dataset_id == e.datasetId)
|
|
@@ -881,7 +881,7 @@ export class TiledMapFromEntity extends TiledMapBase{
|
|
}else{
|
|
}else{
|
|
data.filePath = `${Potree.settings.urls.prefix1}${e.file_path}`
|
|
data.filePath = `${Potree.settings.urls.prefix1}${e.file_path}`
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ this.pointcloud = pointcloud
|
|
|
|
|
|
|
|
|
|
data.fileName = '$DEPTH/$X/$Y.png'
|
|
data.fileName = '$DEPTH/$X/$Y.png'
|
|
@@ -924,13 +924,11 @@ export class TiledMapFromEntity extends TiledMapBase{
|
|
|
|
|
|
get position(){
|
|
get position(){
|
|
return this.tiledMapEntity.location
|
|
return this.tiledMapEntity.location
|
|
- /* enumerable: !0,
|
|
|
|
- configurable: !0 */
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
get quaternion(){
|
|
get quaternion(){
|
|
- return this.tiledMapEntity.orientation
|
|
|
|
- /* enumerable: !0,
|
|
|
|
- configurable: !0 */
|
|
|
|
|
|
+ //return this.tiledMapEntity.orientation//数据集支持其他方向旋转后不用这个了
|
|
|
|
+ return typeof(this.pointcloud.orientationUser ) == 'number' ? this.tiledMapEntity.orientation : this.pointcloud.orientationUser.clone()
|
|
}
|
|
}
|
|
|
|
|
|
getTileUrl(t, e, n) {
|
|
getTileUrl(t, e, n) {
|