AutoSmoothMeshLines
- AutoSmoothMeshLines(lines, max_res, ratio, varargin)
Full definition:
function [lines quality] = AutoSmoothMeshLines( lines, max_res, ratio, varargin)
Generate smooth mesh lines by choosing an appropriate algorithm.
Currently supported algorithm: SmoothMeshLines, SmoothMeshLines2 and RecursiveSmoothMesh
arguments:
lines: given fixed lines to create a smooth mesh in between
max_res: desired max. resolution
ratio: grading ratio: desired neighboring line-delta ratio
default is 1.5
see also ‘allowed_max_ratio’ argument
variable arguments (‘keyword’,value):
algorithm: define subset of tried algorihm, e.g. [1 3]
symmetric: 0/1 force symmetric mesh (default is input symmetry)
homogeneous: 0/1 force homogeneous mesh
allowed_min_res: allow a given min resolution only
allowed_max_ratio: allow only a given max. grading ratio (default –> ratio*1.25)
debug: 0/1 off/on
example:
lines = AutoSmoothMeshLines([-100 -10 10 100], 20, 1.5, 'algorihm', ...
1:3);
See also InitCSX, DefineRectGrid
author: Thorsten Liebig (C) 2012