group__sg.html
来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 576 行 · 第 1/3 页
HTML
576 行
</tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>res</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Create a sphere geometry with the indicated material, radius and resolution.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pMats</em> </td><td>The array of materials to use. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iMatIdx</em> </td><td>The index of the material to use. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iVertType</em> </td><td>Flags which indicate what type of information is stored with each vertex. This can be any combination of the following bit flags:<ul><li>VT_Normals - a normal per vertex.</li><li>VT_Colors - a color per vertex.</li><li>VT_TexCoords - a texture coordinate (UV) per vertex. </li></ul></td></tr> <tr><td valign="top"></td><td valign="top"><em>fRadius</em> </td><td>The radius of the sphere. </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>The resolution (tesselation) of the sphere. The number of vertices in the result will be res*res*2. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="gd02293e4f6c7e5eb3bf671d3be88557e"></a><!-- doxytag: member="GeomUtil.h::CreateSphereMesh" ref="gd02293e4f6c7e5eb3bf671d3be88557e" args="(const FSphere &sphere, int res=24)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classvtMesh.html">vtMesh</a>* CreateSphereMesh </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classFSphere.html">FSphere</a> & </td> <td class="mdname" nowrap> <em>sphere</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>res</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Create a wireframe sphere which is very useful for visually representing the bounding sphere of an object in the scene. </td> </tr></table><a class="anchor" name="gcc0706321d4b322b6a936838389aaa44"></a><!-- doxytag: member="NodeOSG.h::vtIntersect" ref="gcc0706321d4b322b6a936838389aaa44" args="(vtNode *pTop, const FPoint3 &start, const FPoint3 &end, vtHitList &hitlist, bool bLocalCoords=false, bool bNativeNodes=true)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int vtIntersect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classvtNode.html">vtNode</a> * </td> <td class="mdname" nowrap> <em>pTop</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classFPoint3.html">FPoint3</a> & </td> <td class="mdname" nowrap> <em>start</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classFPoint3.html">FPoint3</a> & </td> <td class="mdname" nowrap> <em>end</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>vtHitList & </td> <td class="mdname" nowrap> <em>hitlist</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>bLocalCoords</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>bNativeNodes</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Check for surface intersections along a line segment in space.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pTop</em> </td><td>The top of the scene graph that you want to search for intersections. This can be the root node if you want to seach your entire scene, or any other node to search a subgraph. </td></tr> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>The start point (world coordinates) of the line segment. </td></tr> <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>The end point (world coordinates) of the line segment. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hitlist</em> </td><td>The results. If there are intersections (hits), they are placed in this list, which is simply a std::vector of <a class="el" href="structvtHit.html">vtHit</a> objects. Each <a class="el" href="structvtHit.html">vtHit</a> object gives information about the hit point. </td></tr> <tr><td valign="top"></td><td valign="top"><em>bLocalCoords</em> </td><td>Pass true to get your results in local coordinates (in the frame of the object which was hit). Otherwise, result points are in world coordinates. </td></tr> <tr><td valign="top"></td><td valign="top"><em>bNativeNodes</em> </td><td>Pass true to return the internal (native) scene graph node that was hit, when there is no corresponding <a class="el" href="classvtNode.html">vtNode</a>. Pass false to always return a <a class="el" href="classvtNode.html">vtNode</a>, by looking up the scene graph as needed.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The number of intersection hits (size of the hitlist array). </dd></dl> </td> </tr></table><a class="anchor" name="g5ed274b1f10356934c578cf75d1859ba"></a><!-- doxytag: member="GeomUtil.h::WriteGeomToOBJ" ref="g5ed274b1f10356934c578cf75d1859ba" args="(vtGeom *geom, const char *filename)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool WriteGeomToOBJ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classvtGeom.html">vtGeom</a> * </td> <td class="mdname" nowrap> <em>geom</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>filename</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Write a geometry node to a old-fashioned Wavefront OBJ file. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:41:01 2008 for vtlib library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?