Reflecting surface (guide and mirror) with any shape, defined from an OFF file
and a patch to allow reflectivites added per polygon face. Derived from Guide_anyshape.
Author: Emmanuel Farhi, adapted by Peter Link
Date: August 4th 2010
This is a reflecting object component, derived from Guide_anyshape.
Its shape (and optionally m-value pr. surface) is defined from an OFF file,
given with its file name. The object size is set as given from the file, where
dimensions should be in meters. The bounding box may be re-scaled by specifying
xwidth,yheight,zdepth parameters. The object may optionally be centered when
The reflectivity is specified either from the usual parametric description
R0,Qc,alpha,W,m, or by defning an m-value for each face present in the OFF file.
The complex OFF/PLY geometry option handles any closed non-convex polyhedra.
It supports the OFF and NOFF file format but not COFF (colored faces).
Such files may be generated from XYZ data using:
qhull < coordinates.xyz Qx Qv Tv o > geomview.off
and viewed with geomview or java -jar jroff.jar (see below).
The default size of the object depends of the OFF file data, but its
bounding box may be resized using xwidth,yheight and zdepth.
PLY geometry files are also supported.
This component does take into account gravitation accurately.
Example values: m=4 Qc=0.0219 W=1/300 alpha=6.49 R0=1
WARNING: This is a contributed Component.
Parameters in boldface are required;
the others are optional.
Name of the OFF/PLY file describing the guide geometry
Redimension the object bounding box on X axis is non-zero
Redimension the object bounding box on Y axis is non-zero
Redimension the object bounding box on Z axis is non-zero
When set to 1, the object will be centered w.r.t. the local coordinate frame
When true, non reflected neutrons are transmitted through the surfaces, instead of being absorbed. No material absorption is taken into account though
Critical scattering vector
Slope of reflectivity
m-value of material. Zero means completely absorbing.