Skip to main content

@novorender/api / RenderStatePointCloud

Interface: RenderStatePointCloud

Defined in: @novorender/src/core3d/state/index.ts:410

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>;

Defined in: @novorender/src/core3d/state/index.ts:434

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.


deviation​

readonly deviation: object;

Defined in: @novorender/src/core3d/state/index.ts:449

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


size​

readonly size: object;

Defined in: @novorender/src/core3d/state/index.ts:412

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.


undefinedColor?​

readonly optional undefinedColor: RGBA;

Defined in: @novorender/src/core3d/state/index.ts:439

The color of points with undefined point visualization value


useProjectedPosition​

readonly useProjectedPosition: boolean;

Defined in: @novorender/src/core3d/state/index.ts:460

Use pre-computed projected point cloud positions instead of original.

Remarks​

This is currently used to render an unwrapped 2D variant of tunnels.