frudawski

plot3dldc

The plot3dldc function plots a 3D illustration of a given light intensity distribution curve (LDC).

See also: readldt

Usage:

plot3dldc(ldt,'parameter','value')

Where:

ParameterDescription or value
ldcIs a valid light intensity distribution curve struct, see readldt function
'clr'
(optional)
1\times 3 colour vector, default orange: [0.8594 0.5153 0]
'mode'
(optional)
‘3D’ – 3D plot (default)
‘wire’ – 3D wireframe plot, blue line marks C0 plane
‘norm’ – normalized 3D wireframe , blue line marks C0 plane
'origin'
(optional)
1\times 3 vector, defines the origin in cartesian coordinates of the LDC. Default [0 0 0]
'rotation' 3\times 3 rotation matrix for rotated LDC plot

Examples

Plot lambertian LDC:

ldc = readldt('lambert.ldt');
plot3dldc(ldc)

See also: readldt

Result:


Note: To select a file via a popup dialog window, use the following code snippet:

[file,path] = uigetfile('*.ldt');
% select EULUMDAT file %
ldt = read_ldt([path file])

Plot lambertian LDC as wireframe:

ldc = readldt('lambert.ldt');
plot3dldc(ldc,'mode','wire')

See also: readldt

Result:

Plot two LDCs in one illutration using different colours and rotation:

ldc = readldt('lambert.ldt');
plot3dldc(ldc)
hold on
% create rotation matrix (x-axis, -45 degree)
R = rotMatrixD([1 0 0],-45);
plot3dldc(ldc,'clr',[0 0 1],'rotation',R,'origin',[180 0 0])
hold off

See also: readldt

Result:

References:

Ian Ashdown: Thinking Photometrically Part II. 2011, (LIGHTFAIR 2001 Pre-Conference Workshop).

Axel Werner Richard Stockmar: EULUMDAT – ein Leuchtendatenformat für den europäischen Beleuchtungplaner. In: 9. Gemeinschaftstagung der Lichttechnischen Gesellschaften Deutschlands, der Niederlande, Österreichs und Schweiz, pp. 641–644, Nederlandse Stichting voor Verlichtingskunde, 1990.

Leave a comment

* I accept the use of cookies as well as the terms in the privacy policy. I accept that data provided by me is processed and saved. I know that comments are saved and published after review.