smooth_shading_algorithm

smooth_shading_algorithm#

smooth_shading_algorithm(
inp,
split_sharp_edges: bool = False,
feature_angle: float = 30.0,
) SmoothShadingAlgorithm[source]#

Add a filter that computes point normals for smooth shading.

Parameters:
inppyvista.DataSet | vtkAlgorithm

Input data or algorithm.

split_sharp_edgesbool, default: False

Whether to split sharp edges when computing normals.

feature_anglefloat, default: 30.0

Angle (in degrees) above which an edge is considered sharp. Only used when split_sharp_edges is True.

Returns:
SmoothShadingAlgorithm

Smooth shading filter applied to the input data.