You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
525 B

close all
clear
model = '../../test/testdata/bunny.off';
file = 'bunny_poisson.h5';
[f, v] = read_off(model);
T = triangulation(f, v);
pos = h5read(file, '/pos');
sol = h5read(file, '/sol');
x = pos(:, 1);
y = pos(:, 2);
z = pos(:, 3);
I = y > -20;
x = x(I);
y = y(I);
z = z(I);
sol = sol(I);
figure;
hold on
box on
grid on
daspect([1 1 1])
view(3);
gray = 0.5*[1 1 1];
trisurf(T, 'EdgeColor', gray, 'FaceColor', 'none');
scatter3(x, y, z, 3, sol,'filled');
colorbar
colormap jet
title('Cross-section of the solution')