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

📄 cogtorustest.html

📁 有限元学习研究用源代码(老外的),供科研人员参考
💻 HTML
字号:
<TITLE>COG 1.0: torus</TITLE>
<H2>CogeometryTorus</H2>

<PRE>
#include "cogsimple.hxx"
</PRE>

 <P>Here we test some elementary cogeometries.  The implementation is
based on the usage of the class <A HREF="cogfunctiontest.html">
CogeometryByRegions</A>.

 <P>This example defines a torus in the xy-plane by the center
<B>(px,py,pz)</B>, the big and the small radius <B>rbig, rsmall</B>.

<PRE>
cogeometry test_cogeometry()
{
  cogFloat rbig=0.9,rsmall=0.3;
  CogeometryTorus *t = new CogeometryTorus(wzRegion(3),wzRegion(1));
  t-&gt;setCenter(0,0.8,0.7);
  t-&gt;setScale(rbig,rsmall); 
  return t;
}
</PRE>

⌨️ 快捷键说明

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