blob: 2411d8501f2d8b649de7783ffa3a8e8c2dab4b73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
function CSX = InitCSX(varargin)
% function CSX = InitCSX()
%
% Inititalize the CSX data-structure.
%
% variable arguments:
% 'CoordSystem' : define the default coordinate system
% 0 -> Cartesian
% 1 -> Cylindircal
% 2 -> Sphercial (not yet implemented)
%
% example:
% CSX = InitCSX(); %for a default cartesian mesh
% or
% CSX = InitCSX('CoordSystem','1'); % for a cylindrical mesh definition
%
% See also DefineRectGrid, SmoothMeshLines, SmoothMeshLines2,
% SetBackgroundMaterial
%
% CSXCAD matlab interface
% -----------------------
% author: Thorsten Liebig
CSX.Properties = [];
%Cartesian mesh as default coordinate system
CSX.ATTRIBUTE.CoordSystem = 0;
for n=1:2:numel(varargin)
CSX.ATTRIBUTE.(varargin{n}) = (varargin{n+1});
end
|