cog2test.html

来自「有限元学习研究用源代码(老外的),供科研人员参考」· HTML 代码 · 共 39 行

HTML
39
字号
<TITLE>COG 1.0 - test_cogeometry_2</TITLE>

<H1>First Cogeometry-Argument For Test-Cogeometries</H1>

 <P>Some cogeometries (
 <A HREF="cogfunctiontest.html">function</A>
 <A HREF="cogmaptest.html">map</A>
 <A HREF="cogintersectiontest.html">intersection</A>
 <A HREF="coguniontest.html">union</A>
 <A HREF="cogsplittest.html">split</A>
 <A HREF="cogoverlaytest.html">overlay</A>
 <A HREF="cogboxtest.html">box</A>
 <A HREF="cogperiodictest.html">periodic</A>
 ) use other cogeometries as arguments. 

 <P>This file defines the default for the second argument for the test
of such cogeometries. You can use also another test cogeometry xxx (if
xxx does not depend on arguments itself) instead of the cogeometry
defined below simply by the command

 <P>&gt; <B>use cog xxx 2</B>

 <P>Here we use a simple <A HREF="cogtorustest.html">torus</A>.  Using
a lot of different colors like in the <A HREF="cog1test.html">first
argument</A> would be confusing.

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

⌨️ 快捷键说明

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