Skip to content

Commit

Permalink
manual: add sample 3D shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
dlegland committed Jul 23, 2024
1 parent 8c23683 commit 2ab02a3
Show file tree
Hide file tree
Showing 6 changed files with 297 additions and 84 deletions.
Binary file added docs/matGeom-manual/images/geom3d/capsule.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions docs/matGeom-manual/images/geom3d/demoShapes3d.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
%DEMOSHAPES3D Display a selection of 3D shapes.
%
% output = demoShapes3d(input)
%
% Example
% demoShapes3d
%
% See also
%

% ------
% Author: David Legland
% e-mail: [email protected]
% INRAE - BIA Research Unit - BIBS Platform (Nantes)
% Created: 2024-07-23, using Matlab 24.1.0.2628055 (R2024a) Update 4
% Copyright 2024 INRAE.

%% Torus

torus = [50 50 50 30 10 30 45];
fig1 = figure(1); clf; axis equal; hold on;
drawTorus(torus);
view([95 10]); light;
axis('vis3d');
title('Torus');
print(fig1, 'torus.png', '-dpng');


%% Ellipsoid

elli = [10 20 30 50 30 10 10 20 30];
fig1 = figure(1); clf; axis equal; hold on;
drawEllipsoid(elli); light;
view([20 10]);
title('Ellipsoid');
print(fig1, 'ellipsoid.png', '-dpng');


%% Capsule

caps = [20 30 40 80 70 60 10];
fig1 = figure(1); clf; axis equal; hold on;
drawCapsule(caps); light;
view([20 10]);
title('Capsule');
print(fig1, 'capsule.png', '-dpng');


%% Dome

% dome = [20 30 40 80 70 60 10];
fig1 = figure(1); clf; axis equal; hold on;
drawDome([10 20 30 10], [1 2 5]); light;
view([20 10]);
title('Dome');
print(fig1, 'dome.png', '-dpng');

Binary file added docs/matGeom-manual/images/geom3d/dome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/matGeom-manual/images/geom3d/ellipsoid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/matGeom-manual/images/geom3d/torus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2ab02a3

Please sign in to comment.