cogboxtest.html
来自「有限元学习研究用源代码(老外的),供科研人员参考」· HTML 代码 · 共 38 行
HTML
38 行
<TITLE>COG 1.0 - CogeometryBox</TITLE>
<H2>class <A NAME="Box">CogeometryBox</A></H2>
<PRE>
#include "<A HREF="cogmap.hxx">cogmap.hxx</A>"
</PRE>
<P>The class <B>CogeometryBox</B> defines a 3D box by minimal and
maximal coordinates. Inside the box, the geometry is left unchanged,
but outside it makes 1D-continuation.
<P>Such a box may be very useful if you have a geometry description
which works correctly only inside a box. The input geometry will never
be called with coordinates outside the box.
<PRE>
cogeometry test_cogeometry()
{
cogeometry original = test_cogeometry_1();
</PRE>
<P>Now, the creation of the box is simple:
<PRE>
CogeometryBox *box = new CogeometryBox(original);
box->setMinimum(0.15,0.15,0.15);
box->setMaximum(0.85,0.85,0.85);
return box;
}
#ifdef test_cogeometry
this code can be used only in cogtest.cxx !!!!! see test.html#parameters for more;
#endif
</PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?