mainoctree3dtest.html

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

HTML
33
字号
<TITLE>COG 2.1: 3D grids</TITLE><A HREF="mainfacetest.html">next</A><H1>COG 2.1: 3D example of CogenOctree</H1> <P>The possibilities of the class <A HREF="cogenoctree.html">CogenOctree</A> are available in 3D too.compared with our <A HREF="mainoctreetest.html">2D test example</A> wesimply have to add some more parameters for the related values inz-direction:<PRE>#include "<A HREF="coglib.hxx">cog/coglib.hxx</A>"int main(){  cogenOctree gen = new CogenOctree();  gen-&gt;addBox(wzRegion(2), 0.0,0.4, 0.0,0.5, 0.0,0.6);  gen-&gt;addBox(wzRegion(3), 0.2,1.0, 0.3,1.0, 0.4,1.0);  gen-&gt;addPlaneZ(0.9);  gen-&gt;setRegularRefinementZ(1);</PRE> <P>Note that we have defined one plane in z-direction to fix thez-coordinate of the points of the 2D grid.<PRE>  wzgrid grid = (*gen)();  grid->write("test.sg");}</PRE>

⌨️ 快捷键说明

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