Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IAH public
DeProj
Commits
d237e9bf
Commit
d237e9bf
authored
Jul 26, 2020
by
Jean-Yves TINEVEZ
Browse files
Offset Z position to 0 in bellaiche import.
parent
3f686dc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@deproj/from_bellaiche.m
View file @
d237e9bf
...
...
@@ -19,6 +19,8 @@ function obj = from_bellaiche( ...
tic
[
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'
);
fprintf
(
'Loaded %d vertices in %.1f seconds.\n'
,
size
(
V
,
1
),
toc
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment