Lines Matching refs:torus
28 function varargout = torusMesh(torus, varargin)
29 %TORUSMESH Create a 3D mesh representing a torus.
32 % Converts the torus in TORUS into a face-vertex quadrangular mesh.
34 % where (XC YZ ZC) is the center of the torus, R1 is the main radius, R2
35 % is the radius of the torus section, and (THETA PHI) is the angle of the
36 % torus normal vector (both in degrees).
43 % Creates a mesh representing a default torus.
66 %% Extract data for torus
69 torus = [0 0 0 30 10 0 0 0]; variable
72 center = torus(1:3);
73 r1 = torus(4);
74 r2 = torus(5);
76 if size(torus, 2) >= 7
77 normal = torus(6:7);
101 %% Discretize torus
103 % create base torus
107 % transform torus