DefineRectGrid ============== ```{function} DefineRectGrid(CSX, deltaUnit, mesh); ``` Full definition: ```{code-block} matlab function CSX = DefineRectGrid(CSX, deltaUnit, mesh); ``` Create a rectiliniear grid. example Cartesian mesh: CSX = InitCSX(); mesh.x = AutoSmoothMeshLines([0 a], 10); mesh.y = AutoSmoothMeshLines([0 b], 10); mesh.z = AutoSmoothMeshLines([0 length], 15); CSX = DefineRectGrid(CSX, unit,mesh); example Cylindrical mesh: CSX = InitCSX('CoordSystem',1); mesh.r = AutoSmoothMeshLines([0 a], 10); mesh.a = AutoSmoothMeshLines([0 2*pi], pi/30); mesh.z = AutoSmoothMeshLines([-length 0 length], 15); CSX = DefineRectGrid(CSX, unit,mesh); See also InitCSX, SmoothMesh, AutoSmoothMeshLines, DetectEdges ----------------------- author: Thorsten Liebig