cogplanetest.html

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

HTML
27
字号
<TITLE>COG 1.0: CogeometryPlane</TITLE>

<H2>CogeometryPlane</H2>

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

 <P>Here we create a simple plane. The implementation is based on the
usage of the class <A HREF="cogfunctiontest.html">
CogeometryByRegions</A>.


 <P>The class <B>CogeometryPlane</B> defines a plane using a direction
<B>(dx,dy,dz)</B> and a point <B>(px,py,pz)</B> of this plane.

<PRE>
cogeometry test_cogeometry()
{
  cogFloat dx=1,dy=-1,dz=1,px=0.2,py=0.4,pz=0.5; 
  CogeometryPlane *p = new CogeometryPlane(wzRegion(2),wzRegion(1)); 
  p-&gt;setDirection(dx,dy,dz);
  p-&gt;setPoint(px,py,pz);
  return p;
}
</PRE>

⌨️ 快捷键说明

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