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

📄 maincontinuationtest.html

📁 Delaunay三角形的网格剖分程序
💻 HTML
字号:
<TITLE>COG 2.1: 3D continuation of 2D grids</TITLE><H1>3D continuation of 2D grids</H1> <P>There are some possibilities to modify grids outside the generalcogenerator concept.  One of them is a 3D continuation of a given 2Dgrid. <P>Input is a 2D grid created otherwise (here a 2D unit square withtwo triangles):<PRE>#include "<A HREF="coglib.hxx">cog/coglib.hxx</A>"int main(){  cogenOctree gen = new CogenOctree();  gen-&gt;setBorder(0.0,1.0, 0.0,1.0);  wzgrid grid2D = (*gen)();</PRE> <P>Now, we can create a 3D tetrahedral grid by continuation inz-direction.  Every triangle gives a prism subdivided into threetetrahedra.  There may be several layers.  In our case, we have twolayers:<PRE>  wzFloat dz = 0.4;  wzIndex number_of_layers = 2;  wzgrid grid = wzGridContinuation3D(grid2D, dz, number_of_layers);</PRE> <P>which gives the following grid: <P><IMG SRC="continuationtest.gif"><PRE>  grid->write("test.sg");}</PRE>

⌨️ 快捷键说明

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