Xraytrace documentation

raytracing software for x-ray standing wave calculations

User Tools

Site Tools


sample_geometry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sample_geometry [2018/01/24 16:32]
185.62.108.185
sample_geometry [2018/01/24 18:19] (current)
89.103.122.186
Line 63: Line 63:
 {{ :​objects.png?​400 |}} {{ :​objects.png?​400 |}}
  
 +
 +As the voxel based mesh features the staircasing effect, we need to handle the surface normal calculation carefully, while evaluating interaction of the ray with the object. Use of some particular method is chosen in the main parameter file, using e.g. this command
 +
 +<​code>​
 +INTERFACE_METHOD
 +3
 +</​code>​
 +
 +which sets the crudest method significantly affected by staircasing.
 +
 +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 |}}
  
  
  
sample_geometry.1516807925.txt.gz ยท Last modified: 2018/01/24 16:32 by 185.62.108.185