|
Open PaperOpt
|
#include <SurfaceTNInk.h>


Public Member Functions | |
| SurfaceTNInk (float _zoffset, float _xmax, float _ymax, float _rmsmin, float _rmsmax, Halftone *half, int nrHalfTones, StructureObject *_el, std::vector< float > lambdasim) | |
| virtual | ~SurfaceTNInk () |
| int | Process (WavePacket &wp, int updown, int internal) const |
| SurfaceTNInk::SurfaceTNInk | ( | float | _zoffset, |
| float | _xmax, | ||
| float | _ymax, | ||
| float | _rmsmin, | ||
| float | _rmsmax, | ||
| Halftone * | half, | ||
| int | nrHalfTones, | ||
| StructureObject * | _el, | ||
| std::vector< float > | lambdasim | ||
| ) |
Set various constants
Since we don't map different roughness values to the surface, we use the member 'rms' and ignore the matrix 'roughness'.
Read the halftones.

| SurfaceTNInk::~SurfaceTNInk | ( | ) | [virtual] |
| int SurfaceTNInk::Process | ( | WavePacket & | wp, |
| int | up_down, | ||
| int | internal | ||
| ) | const [virtual] |
Check if two surfaces are same level,no Homogenouse layer exist
| wp | Wave Packet's object to calculate ditance of interception and call many fuctions of wave packet. |
| up_down | Checks if wave packet is travelling in upward. |
If not internal, compute the surface intersection point, if any.
Check for a hit with the any of the halftone layers
If no ink hit, continue with a standard surface scattering. Note: double work if !internal, as the surface intersection will be recalculated in Process.
Reimplemented from Surface.

