📄 cogtorustest.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->setCenter(0,0.8,0.7);
t->setScale(rbig,rsmall);
return t;
}
</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -