maingridviewtest.html

来自「Delaunay三角形的网格剖分程序」· HTML 代码 · 共 49 行

HTML
49
字号
<TITLE>COG 2.1: Looking at a grid</TITLE> <P>See also<UL><LI> <A HREF="mainviewgeomtest.html">viewing a geometry</A><LI> <A HREF="wzwindow.html">general help for the viewer</A><LI> <A HREF="wzgridview.html">grid-specific help for the viewer</A></UL><H1>COG 2.1: Viewing a grid</H1> <P>Let's consider now how to use the COG grid viewer.Let's assume you have Open GL on your machine and no<A HREF="install.html">installation problems</A>. <P>Now, let's at first read a grid from a file:<PRE>#include "<A HREF="coglib.hxx">cog/coglib.hxx</A>"int main(int argc, char** argv){  wzgrid grid;  if(argc&gt;1)  grid = new wzGrid(argv[1]);  else           grid = new wzGrid("test.sg");</PRE> <P>To view this grid, make<PRE>  wzView(grid);}</PRE> <P>I recommend to rename the resulting file: <P><B>&gt; cog main view</B> <BR><B>&gt; mv test view</B> <P>Then you can use it to look at a grid in simplex grid format with <P><B>&gt; view xyz.sg</B><H3>Known Bugs</H3> <P>If you close the window, an X error is received.  This does notseem to do anything wrong.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?