mosaic.operations.compute_normals#
- compute_normals(geometry, method='Compute', k=15, **kwargs)[source]#
Compute or flip point normals.
- Parameters:
- geometryGeometry or GeometryData
Input data.
- methodstr, optional
Normal computation method. Options are: - ‘Compute’ : Calculate new normals from point neighborhoods - ‘Flip’ : Reverse existing normal directions Default is ‘Compute’.
- kint, optional
Number of neighbors to consider for normal computation. Only used when method=’Compute’. Default is 15.
- **kwargs
Additional parameters for normal computation.
- Returns:
- Geometry
A duplicate of the input geometry with updated normals.