@@ -17,7 +17,13 @@ import { PointCloudNode } from '@/datamodels/pointcloud/PointCloudNode';
17
17
export class CognitePointCloudModel extends THREE . Object3D implements CogniteModelBase {
18
18
public readonly type : SupportedModelTypes = 'pointcloud' ;
19
19
public readonly modelId : number ;
20
+ /**
21
+ * The modelId of the point cloud model in Cognite Data Fusion.
22
+ */
20
23
public readonly revisionId : number ;
24
+ /**
25
+ * The revisionId of the specific model revision in Cognite Data Fusion.
26
+ */
21
27
private readonly pointCloudNode : PointCloudNode ;
22
28
23
29
/**
@@ -88,6 +94,9 @@ export class CognitePointCloudModel extends THREE.Object3D implements CogniteMod
88
94
return this . pointCloudNode . getModelTransformation ( out ) ;
89
95
}
90
96
97
+ /**
98
+ * Returns the current budget measured in number of points.
99
+ */
91
100
get pointBudget ( ) : number {
92
101
return this . pointCloudNode . pointBudget ;
93
102
}
@@ -101,12 +110,16 @@ export class CognitePointCloudModel extends THREE.Object3D implements CogniteMod
101
110
this . pointCloudNode . pointBudget = count ;
102
111
}
103
112
113
+ /**
114
+ * Determines how points currently are colored.
115
+ */
104
116
get pointColorType ( ) : PotreePointColorType {
105
117
return this . pointCloudNode . pointColorType ;
106
118
}
107
119
108
120
/**
109
- * @see {@link PotreePointColorType } For available types.
121
+ * Specifies how points are colored.
122
+ * @default PotreePointColorType.Rgb
110
123
* @example
111
124
* ```js
112
125
* model.pointColorType = PotreePointColorType.Rgb
0 commit comments