Skip to content

Commit

Permalink
Tests were broken... now fixed but need more for hermite
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofe committed Apr 10, 2015
1 parent 105200e commit 2989af5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test_mex.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,18 @@
X = 2 * (U - 1) ./ (xdim - 1) - 1; % [-1, 1]
Y = 2 * (V - 1) ./ (ydim - 1) - 1; % [-1, 1]
Z = 2 * (D - 1) ./ (zdim - 1) - 1; % [-1, 1]
figure;
noise = Perlin3D(X, Y, Z);
plot_3D_scalar(noise);
title('Perlin3D');

figure;
noise = Hermite3D(X, Y, Z);
plot_3D_scalar(noise);
title('Hermite3D');

figure;
noise = Perlin3D(X, Y, Z);
plot_3D_scalar(noise);
title('Perlin3D');


% 3D Gradient
[noise_deriv, gradNoise] = Perlin3DDeriv(X, Y, Z);
err = abs(noise_deriv - noise);
Expand Down

0 comments on commit 2989af5

Please sign in to comment.