interface.RenderStatePointCloud
API > RenderStatePointCloud
Interface: RenderStatePointCloud
Point cloud related render state.
Remarks
The sizes are cumulative and computed as follows:
effective_point_pixel_size = max(1, pixelSize + projectedSizeOf(metricSize + tolerance * toleranceFactor))
.
Metric size is projected as a 3D sphere at the point origo to deterine pixel size.
The term pixel refers to the size of a pixel in the target canvas element, which resolution may differ from that of the render buffer.
Properties
classificationColorGradient
readonly
classificationColorGradient:RenderStateColorGradient
\<RGBA
>
Color gradient to use for visualizing deviation and tolerances.
Remarks
May define different gradients for negative and positive numbers. classification values between gradent color stops will be interpolated.
Source
@novorender/core3d/state/index.ts:413
deviation
readonly
deviation:object
Type declaration
deviation.colorGradients
readonly
colorGradients: readonlyRenderStateColorGradient
\<RGBA
>[]Color gradient to use for visualizing deviation and tolerances.
Remarks
May define different gradients for negative and positive numbers. deviation index will be mapped to the gradient array
Source
@novorender/core3d/state/index.ts:429
size
readonly
size:object
Point size state.
Type declaration
size.maxPixel
readonly
maxPixel:undefined
|number
Max point size in pixels.
size.metric
readonly
metric:undefined
|number
Point size in meters.
size.pixel
readonly
pixel:undefined
|number
Point size in pixels.
size.toleranceFactor
readonly
toleranceFactor:number
The scaling factor for applying the tolerance of the current level of detail to point size.
Remarks
Different levels of detail (LOD) will have different point densities. Taking this difference into account may result in a more uniform point coverage and visually pleasing result. The tolerance of each LOD reflects the point merging distance threshold in meters used to reduce # points, or 0 for the original level of detail.
Source
@novorender/core3d/state/index.ts:390
undefinedColor
undefinedColor?:
RGBA
The color of points with undefined point visualization value
Source
@novorender/core3d/state/index.ts:419
useProjectedPosition
readonly
useProjectedPosition:boolean
Use pre-computed projected point cloud positions instead of original.
Remarks
This is currently used to render an unwrapped 2D variant of tunnels.