Просмотр исходного кода

spacing

Former-commit-id: e3e9b75bd9d4ace75e660ea6b4d36fcaf0298bfe
Alec Jacobson 10 лет назад
Родитель
Сommit
48f90d6f3a
1 измененных файлов с 22 добавлено и 22 удалено
  1. 22 22
      examples/ambient-occlusion-mex/ambient_occlusion.m

+ 22 - 22
examples/ambient-occlusion-mex/ambient_occlusion.m

@@ -1,22 +1,22 @@
-  % AMBIENT_OCCLUSION Compute ambient occlusion per given point
-  %
-  % S = ambient_occlusion(V,F,P,N,num_samples)
-  %
-  % Inputs:
-  %    V  #V by 3 list of mesh vertex positions
-  %    F  #F by 3 list of mesh triangle facet indices into V
-  %    P  #P by 3 list of origin points
-  %    N  #P by 3 list of origin normals
-  %    num_samples  number of samples
-  % Outputs:
-  %    S  #P list of ambient occlusion values between 1 (fully occluded) and 0
-  %      (not occluded)
-  %
-  % Examples:
-  %   % mesh (V,F), scalar field Z
-  %   AO = ambient_occlusion(V,F,V,per_vertex_normals(V,F),1000);
-  %   tsurf(F,V,'FaceVertexCData', ...
-  %     bsxfun(@times,1-AO, ...
-  %       squeeze(ind2rgb(floor(matrixnormalize(Z)*256),jet(256)))), ...
-  %     fphong,'EdgeColor','none');
-  %
+% AMBIENT_OCCLUSION Compute ambient occlusion per given point
+%
+% S = ambient_occlusion(V,F,P,N,num_samples)
+%
+% Inputs:
+%    V  #V by 3 list of mesh vertex positions
+%    F  #F by 3 list of mesh triangle facet indices into V
+%    P  #P by 3 list of origin points
+%    N  #P by 3 list of origin normals
+%    num_samples  number of samples
+% Outputs:
+%    S  #P list of ambient occlusion values between 1 (fully occluded) and 0
+%      (not occluded)
+%
+% Examples:
+%   % mesh (V,F), scalar field Z
+%   AO = ambient_occlusion(V,F,V,per_vertex_normals(V,F),1000);
+%   tsurf(F,V,'FaceVertexCData', ...
+%     bsxfun(@times,1-AO, ...
+%       squeeze(ind2rgb(floor(matrixnormalize(Z)*256),jet(256)))), ...
+%     fphong,'EdgeColor','none');
+%