Mercurial > forge
changeset 9618:6ffa69556df6 octave-forge
geometry: write points in mesh file with higher resolution
author | jpicarbajal |
---|---|
date | Sat, 10 Mar 2012 04:18:08 +0000 |
parents | 304af0bcac9f |
children | bf1a6199ecf6 |
files | main/geometry/inst/io/private/pointGeo.m |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/main/geometry/inst/io/private/pointGeo.m Fri Mar 09 20:03:49 2012 +0000 +++ b/main/geometry/inst/io/private/pointGeo.m Sat Mar 10 04:18:08 2012 +0000 @@ -1,5 +1,5 @@ %% Copyright (c) 2010 Juan Pablo Carbajal <carbajal@ifi.uzh.ch> -%% +%% %% This program is free software: you can redistribute it and/or modify %% it under the terms of the GNU General Public License as published by %% the Free Software Foundation, either version 3 of the License, or @@ -17,9 +17,9 @@ %% @deftypefn {Function File} @var{str} = poointGeo (@var{n}, @var{xyz}, @var{l}) %% Generates a string for Gmsh Point format. %% -%% Gmsh's simplest `elementary entity', a `Point'. A Point is defined by a list -%% of five numbers: @var{n} the identificator, @var{xyz} three coordinates (X, Y -%% and Z), and a characteristic length @var{l} that sets the target element size +%% Gmsh's simplest `elementary entity', a `Point'. A Point is defined by a list +%% of five numbers: @var{n} the identificator, @var{xyz} three coordinates (X, Y +%% and Z), and a characteristic length @var{l} that sets the target element size %% at the point: %% The distribution of the mesh element sizes is then obtained by %% interpolation of these characteristic lengths throughout the @@ -28,5 +28,5 @@ %% @end deftypefn function str = pointGeo(n,xyz,l) - str = sprintf('Point(%d) = {%f,%f,%f,%f};\n',n,xyz,l); + str = sprintf('Point(%d) = {%.16g,%.16g,%.16g,%.16g};\n',n,xyz,l); end