This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
sample_geometry [2018/01/24 18:10] 89.103.122.186 |
sample_geometry [2018/01/24 18:19] (current) 89.103.122.186 |
||
---|---|---|---|
Line 74: | Line 74: | ||
There are different surface normal evaluation methods implemented: if we use 0 as the above command parameter, simple weighting of the pixel neighbourhood is used. Regime 1 means something more advanced, however again based on weighting of the amount of material around the pixel where we do the evaluation. Regime 2 is most resistant to staircasing, being based on pre-calculation of local neighbourhood gradient and then using this information as shown in the figure below. Finally, regime 3 means only local evaluation, searching for adjacent voxels and should be used only for rectangular objects. | There are different surface normal evaluation methods implemented: if we use 0 as the above command parameter, simple weighting of the pixel neighbourhood is used. Regime 1 means something more advanced, however again based on weighting of the amount of material around the pixel where we do the evaluation. Regime 2 is most resistant to staircasing, being based on pre-calculation of local neighbourhood gradient and then using this information as shown in the figure below. Finally, regime 3 means only local evaluation, searching for adjacent voxels and should be used only for rectangular objects. | ||
+ | |||
+ | If the gradient based control method is used, it can be controlled further by local averaging area selection, using e.g. this directive: | ||
+ | <code> | ||
+ | AVERAGE | ||
+ | 3 | ||
+ | </code> | ||
+ | |||
+ | The provided value is typically in range of 2-5, the higher value the smoother the object boundaries are. However, too much of smoothing can also remove some fine details. Note that gradient based method is precomputing the data at the calculation start, this can affect the computation time. | ||
{{ :normals.png?400 |}} | {{ :normals.png?400 |}} | ||
+ | |||