getPointCloudSettings
Returns the point cloud settings for the specified model.
Example
Usage
const modelId = "my-model-id";
const settings = viewer3d.getPointCloudSettings(modelId);Parameters
modelId
The id of the model to get the point cloud settings for.
Type | Required |
|---|---|
String | Yes |
Return Value
The point cloud settings for the specified model, returns null if specified model not point cloud type.
Type |
|---|
Object |
Properties
Name | Type | Description |
|---|---|---|
activeAttribute | String | The active attribute for the point cloud |
availableAttributes | Array | The available attributes for the point cloud |
opacity | Number | The opacity of the point cloud |
pointSize | Number | The size of the points in the point cloud |
pointSizeType | String | The type of point size used |
pointSizeType
Valid values are:
- adaptive
- fixed
Example
{
activeAttribute: "rgba",
availableAttributes: ["rgba"],
opacity: 1,
pointSize: 1,
pointSizeType: "adaptive",
};