Skip to content
Snippets Groups Projects
Commit 9ed190dd authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 99cf77d7
Branches
Tags
No related merge requests found
// $Id: Graph2D.cpp,v 1.4 2001-10-29 17:03:23 geuzaine Exp $
// $Id: Graph2D.cpp,v 1.5 2001-10-29 17:12:59 geuzaine Exp $
#include "Gmsh.h"
#include "GmshUI.h"
......@@ -137,7 +137,7 @@ void Draw_Graph2D(Post_View *v){
if(v->GraphType==DRAW_POST_2D_SPACE){
for(k=0;k<3;k++){
List_Read(v->SP,j+k,&p2[k]);
p1[k] = p2[k]-p1[k];
if(i) p1[k] = p2[k]-p1[k];
}
dist += sqrt (p1[0] * p1[0] + p1[1] * p1[1] + p1[2] * p1[2]);
sprintf(label, v->Format, dist);
......
View.GraphType=2;
View.Format="%.3g";
View "test" {
SP(0,2,0){1 ,0.2+1 ,0.26+1 ,0.2+1 ,0.26+1 ,0.2+1 ,0.26+1 ,0.2+1 ,0.26+1 };
SP(1,0,0){1.2 ,0.2+1.2,0.24+1.2,0.2+1.2,0.24+1.2,0.2+1.2,0.24+1.2,0.2+1.2,0.24+1.2 };
SP(2,1,0){1.8 ,0.2+1.8,0.28+1.8,0.2+1.8,0.28+1.8,0.2+1.8,0.28+1.8,0.2+1.8,0.28+1.8 };
SP(3,0,0){2.1 ,0.2+2.1,0.29+2.1,0.2+2.1,0.29+2.1,0.2+2.1,0.29+2.1,0.2+2.1,0.29+2.1 };
SP(4,2,0){1.6 ,0.2+1.6,0.3+1.6 ,0.2+1.6,0.3+1.6 ,0.2+1.6,0.3+1.6 ,0.2+1.6,0.3+1.6 };
SP(5,3,0){1.1 ,0.1+1.1,0.11+1.1,0.1+1.1,0.11+1.1,0.1+1.1,0.11+1.1,0.1+1.1,0.11+1.1 };
SP(6,0,0){0.6 ,0.1+0.6,0.1+0.6 ,0.1+0.6,0.1+0.6 ,0.1+0.6,0.1+0.6 ,0.1+0.6,0.1+0.6 };
SP(6,0,0){-0.2,0.1-0.2,0.17-0.2,0.1-0.2,0.17-0.2,0.1-0.2,0.17-0.2,0.1-0.2,0.17-0.2};
SP(8,0,0){-0.3,0.1-0.3,0.41-0.3,0.1-0.3,0.41-0.3,0.1-0.3,0.41-0.3,0.1-0.3,0.41-0.3};
SP(9,0,0){0 ,0.2+0 ,0.42+0 ,0.2+0 ,0.42+0 ,0.2+0 ,0.42+0 ,0.2+0 ,0.42+0 };
};
/*
View "annote" {
T2(0,0){ Sprintf("2D text: Time = %g!!!", View[0].Time) };
T3(1,0,0){ Sprintf("3D text: Time = %g!!!", View[0].Time) };
};
*/
......@@ -26,6 +26,7 @@ Extrude Surface {45, {0,2,0.0}}
Layers {{2,2,2},{111,222,111},{.3,.6,1.}};
} ;
Coherence;
Extrude Surface {64, {-1,0,0}};
Surface Loop(96) = {64,82,86,90,94,95};
Volume(97) = {96};
Extrude Surface {65, {-1,0,0}};
Surface Loop(97) = {65,83,87,91,95,96};
Volume(98) = {97};
$Date: 2001-10-29 08:59:55 $
$Date: 2001-10-29 17:14:50 $
New in 1.28: Corrected the 'Using Progression' attribute for
tranfinite meshes to actually match a real progression; New
Triangulate plugin; New 2D graphs; Better performance of geometrical
transformations (Warning: the automatic numbering of some
automatically created entities has changed);
Triangulate plugin; New 2D graphs (space+time charts); Better
performance of geometrical transformations (Warning: the automatic
numbering of some automatically created entities has changed);
New in 1.27: Added ability to extrude curves with Layers/Recombine
attributes; New PointSize/LineWidth options; Fixed For/EndFor loops in
......
......@@ -52,7 +52,7 @@ Extrude Surface { 11, {0, 0, h} } ;
// manually a characteristic length for some of the automatically
// created points:
Characteristic Length{6,22,2,3,16,12} = lc * 3 ;
Characteristic Length{6,2,52,3,16,12} = lc * 3 ;
// If the transformation tools are handy to create complex geometries,
// it is sometimes useful to generate the flat geometry, consisting
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment