Commit d237e9bf authored by Jean-Yves TINEVEZ's avatar Jean-Yves TINEVEZ
Browse files

Offset Z position to 0 in bellaiche import.

parent 3f686dc3
...@@ -19,6 +19,8 @@ function obj = from_bellaiche( ... ...@@ -19,6 +19,8 @@ function obj = from_bellaiche( ...
tic tic
[ V, F ] = deproj.ply_read( mesh_file_path ); [ V, F ] = deproj.ply_read( mesh_file_path );
% Offset Z to 0.
V( :, 3 ) = V( :, 3 ) - min( V (:, 3 ) );
si = scatteredInterpolant( V(:,1), V(:,2), V(:,3), 'linear', 'nearest' ); si = scatteredInterpolant( V(:,1), V(:,2), V(:,3), 'linear', 'nearest' );
fprintf('Loaded %d vertices in %.1f seconds.\n', size(V, 1), toc ) fprintf('Loaded %d vertices in %.1f seconds.\n', size(V, 1), toc )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment