Bsoft function
afm_generate_tip
Source:
src/img/img_afm.c
Description:
Generates a rounded conical AFM tip.
Algorithm:
A 2D image of a conical tip is generated, with a 45 degree angle and
a rounding tip with the desired radius and softness.
The 2D image is then converted to a 3D surface using the function
img_to_surface and returned. The density of beta-silicon nitride
of 1.925 Da/A3 is used.
Arguments:
| Vector3 size | size of the tip density
|
| Vector3 sampling | sampling/spacing (in angstrom/pixel)
|
| float radius | radius of the tip curvature (in angstrom)
|
| float resolution | the resolution affects the tip surface softness
|
Returns:
Bimage* tip 3D map.
Prototype:
Bimage* afm_generate_tip(Vector3 size, Vector3 sampling, float radius,
float resolution)
Functions used:
balloc
bfree
Other objects included:
struct Bimage
constant VERB_
class Vector3
Generated by bdoc.pl on Mon Jun 15 11:47:13 2009
Back to the Bsoft home