Skip to content

KBE3D / KBCore / Cesium / GeometryPipeline / computeNormal

函数: computeNormal()

computeNormal(geometry: Geometry): Geometry

Computes per-vertex normals for a geometry containing <code>TRIANGLES</code> by averaging the normals of all triangles incident to the vertex. The result is a new <code>normal</code> attribute added to the geometry. This assumes a counter-clockwise winding order.

参数

geometry

Geometry

The geometry to modify.

返回

Geometry

The modified geometry argument with the computed normal attribute.

示例

ts
Cesium.GeometryPipeline.computeNormal(geometry);

KBE3D @3.0.0 Copyright © 2024-present KBE3D