@novorender/web_app / 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.
Defined in
@novorender/core3d/state/index.ts:413
deviation
readonly deviation: object;
colorGradients
readonly colorGradients: readonly RenderStateColorGradient<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
Defined in
@novorender/core3d/state/index.ts:429
size
readonly size: object;
Point size state.
maxPixel
readonly maxPixel: undefined | number;
Max point size in pixels.
metric
readonly metric: undefined | number;
Point size in meters.
pixel
readonly pixel: undefined | number;
Point size in pixels.
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.
Defined in
@novorender/core3d/state/index.ts:390
undefinedColor?
readonly optional undefinedColor: RGBA;
The color of points with undefined point visualization value
Defined in
@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.