Skip to content

Commit 9efbc45

Browse files
committed
Merge branch 'master' of https://github.com/lijx10/SO-Net
2 parents 9f3a7c6 + cea7234 commit 9efbc45

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

data/sampler_matlab/sampler.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727

2828
%% sample points
2929
u = rand(N, 1); % Nx1
30-
v = rand(N, 1) .* (1-u); % Nx1
31-
w = 1-u-v; % Nx1
30+
v = rand(N, 1);
31+
invalid = u + v > 1
32+
u(invalid) = 1 - u(invalid)
33+
v(invalid) = 1 - v(invalid)
3234

33-
pc = u .* sampled_a + v .* sampled_b + w .* sampled_c;
35+
pc = sampled_a + u .* sampled_b + v .* sampled_c;
3436

3537
end
3638

3739
% toc;
38-
% scatter3(pc(:,1), pc(:,2), pc(:,3), 50, pc_normal, 'Marker', '.')
40+
% scatter3(pc(:,1), pc(:,2), pc(:,3), 50, pc_normal, 'Marker', '.')

0 commit comments

Comments
 (0)