From: <jpi...@us...> - 2012-03-10 04:18:15
|
Revision: 9804 http://octave.svn.sourceforge.net/octave/?rev=9804&view=rev Author: jpicarbajal Date: 2012-03-10 04:18:08 +0000 (Sat, 10 Mar 2012) Log Message: ----------- geometry: write points in mesh file with higher resolution Modified Paths: -------------- trunk/octave-forge/main/geometry/inst/io/private/pointGeo.m Modified: trunk/octave-forge/main/geometry/inst/io/private/pointGeo.m =================================================================== --- trunk/octave-forge/main/geometry/inst/io/private/pointGeo.m 2012-03-09 20:03:49 UTC (rev 9803) +++ trunk/octave-forge/main/geometry/inst/io/private/pointGeo.m 2012-03-10 04:18:08 UTC (rev 9804) @@ -1,5 +1,5 @@ %% Copyright (c) 2010 Juan Pablo Carbajal <car...@if...> -%% +%% %% 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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |