setPointCloudSettings
Sets the point cloud settings for the specified model.
Example
Usage
const modelId = "my-model-id";
const settings = {
activeAttribute: "rgba",
opacity: 1,
pointSize: 1,
pointSizeType: "adaptive"
};
viewer3d.setPointCloudSettings(modelId, settings);Parameters
settings
The point cloud settings to apply to the specified model.
Type | Required |
|---|---|
Object | Yes |
Properties
Name | Type | Required | Description |
|---|---|---|---|
activeAttribute | String | No | The active attribute for the point cloud |
opacity | Number | No | The opacity of the point cloud |
pointSize | Number | No | The size of the points in the point cloud |
pointSizeType | String | No | The type of point size to use |
activeAttribute
Get valid values from getPointCloudSettings availableAttributes property.
pointSizeType
Valid values are:
- adaptive
- fixed