English中文

PointCloudShading

new Cesium.PointCloudShading(options)

使用 3D Tiles 渲染点云时根据几何误差执行点衰减的选项。 Options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.
名称 Name 类型 Type 说明 Description
options object 可选 optional 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 默认值 Default 说明 Description
attenuation boolean false 可选 optional 根据几何误差进行点衰减。 Perform point attenuation based on geometric error.
geometricErrorScale number 1.0 可选 optional 应用于每个图块的几何误差的比例。 Scale to be applied to each tile's geometric error.
maximumAttenuation number 可选 optional 最大衰减(以像素为单位)。默认为Cesium3DTileset的maximumScreenSpaceError。 Maximum attenuation in pixels. Defaults to the Cesium3DTileset's maximumScreenSpaceError.
baseResolution number 可选 optional 数据集的平均基本分辨率(以米为单位)。当不可用时替代几何误差。 Average base resolution for the dataset in meters. Substitute for Geometric Error when not available.
eyeDomeLighting boolean true 可选 optional 如果为 true,则在使用点衰减进行绘制时使用眼罩照明。 When true, use eye dome lighting when drawing with point attenuation.
eyeDomeLightingStrength number 1.0 可选 optional 增加该值会增加斜坡和边缘的对比度。 Increasing this value increases contrast on slopes and edges.
eyeDomeLightingRadius number 1.0 可选 optional 增加眼顶照明的轮廓厚度。 Increase the thickness of contours from eye dome lighting.
backFaceCulling boolean false 可选 optional 确定是否隐藏背面点。仅当数据包含法线时此选项才有效。 Determines whether back-facing points are hidden. This option works only if data has normals included.
normalShading boolean true 可选 optional 确定包含法线的点云是否被场景光源遮挡。 Determines whether a point cloud that contains normals is shaded by the scene's light source.

成员 Members

根据几何误差进行点衰减。 Perform point attenuation based on geometric error.
默认值: Default Value: false
确定是否隐藏背面点。仅当数据包含法线时此选项才有效。 Determines whether back-facing points are hidden. This option works only if data has normals included.
默认值: Default Value: false
数据集的平均基本分辨率(以米为单位)。当几何误差为 0 时,用于代替几何误差。如果未定义,将为每个几何误差为 0 的图块计算近似值。 Average base resolution for the dataset in meters. Used in place of geometric error when geometric error is 0. If undefined, an approximation will be computed for each tile that has geometric error of 0.
使用点衰减进行绘制时使用 Eye Dome 照明 需要支持 WebGL 1.0 中的 EXT_frag_depth、OES_texture_float 和 WEBGL_draw_buffers 扩展,否则 Eye Dome 照明将被忽略。 Use eye dome lighting when drawing with point attenuation Requires support for EXT_frag_depth, OES_texture_float, and WEBGL_draw_buffers extensions in WebGL 1.0, otherwise eye dome lighting is ignored.
默认值: Default Value: true

eyeDomeLightingRadius : number

眼顶照明的轮廓厚度 Thickness of contours from eye dome lighting
默认值: Default Value: 1.0

eyeDomeLightingStrength : number

眼罩照明强度(表观对比度) Eye dome lighting strength (apparent contrast)
默认值: Default Value: 1.0

geometricErrorScale : number

在计算衰减之前应用于几何误差的比例。 Scale to be applied to the geometric error before computing attenuation.
默认值: Default Value: 1.0

maximumAttenuation : number

最大点衰减(以像素为单位)。如果未定义,将使用Cesium3DTileset的maximumScreenSpaceError。 Maximum point attenuation in pixels. If undefined, the Cesium3DTileset's maximumScreenSpaceError will be used.
确定包含法线的点云是否被场景光源遮挡。 Determines whether a point cloud that contains normals is shaded by the scene's light source.
默认值: Default Value: true

方法 Methods

static Cesium.PointCloudShading.isSupported(scene)boolean

确定是否支持点云着色。 Determines if point cloud shading is supported.
名称 Name 类型 Type 说明 Description
scene Scene 现场。 The scene.
返回: Returns:
true 是否支持点云着色;否则,返回 if point cloud shading is supported; otherwise, returns false
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.