[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
surfl implementation
From: |
Rik |
Subject: |
surfl implementation |
Date: |
Tue, 04 Feb 2014 19:59:03 -0800 |
2/4/14
I was looking at the surfl normalization and Octave is normalizing the
vertex normals with the plot box aspect ratio values.
--- Code ---
vn = get (htmp, "vertexnormals");
dar = get (hax, "plotboxaspectratio");
vn(:,:,1) *= dar(1);
vn(:,:,2) *= dar(2);
vn(:,:,3) *= dar(3);
--- End Code ---
Shouldn't this be the dataspectratio instead?
Also, shouldn't there be a listener on plotboxaspectratio and
dataaspectratio to update the lighting?
What does Matlab do with the following
--- Code ---
[X,Y,Z] = peaks ();
colormap (copper (64));
surfl (X,Y,Z);
shading interp;
title ('surfl() with defaults');
pause
daspect ([2 2 1])
--- End Code ---
Does it look like the coloring changes when the aspect ratio changes?
--Rik
- surfl implementation,
Rik <=