⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainoctree3dtest.html

📁 Delaunay三角形的网格剖分程序
💻 HTML
字号:
<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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -