📄 mesh.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/microedition/m3g/Node.html#align(javax.microedition.m3g.Node)">align</A>, <A HREF="../../../javax/microedition/m3g/Node.html#getAlphaFactor()">getAlphaFactor</A>, <A HREF="../../../javax/microedition/m3g/Node.html#getParent()">getParent</A>, <A HREF="../../../javax/microedition/m3g/Node.html#getScope()">getScope</A>, <A HREF="../../../javax/microedition/m3g/Node.html#getTransformTo(javax.microedition.m3g.Node, javax.microedition.m3g.Transform)">getTransformTo</A>, <A HREF="../../../javax/microedition/m3g/Node.html#isPickingEnabled()">isPickingEnabled</A>, <A HREF="../../../javax/microedition/m3g/Node.html#isRenderingEnabled()">isRenderingEnabled</A>, <A HREF="../../../javax/microedition/m3g/Node.html#setAlignment(javax.microedition.m3g.Node, int, javax.microedition.m3g.Node, int)">setAlignment</A>, <A HREF="../../../javax/microedition/m3g/Node.html#setAlphaFactor(float)">setAlphaFactor</A>, <A HREF="../../../javax/microedition/m3g/Node.html#setPickingEnable(boolean)">setPickingEnable</A>, <A HREF="../../../javax/microedition/m3g/Node.html#setRenderingEnable(boolean)">setRenderingEnable</A>, <A HREF="../../../javax/microedition/m3g/Node.html#setScope(int)">setScope</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.microedition.m3g.Transformable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.microedition.m3g.<A HREF="../../../javax/microedition/m3g/Transformable.html">Transformable</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/microedition/m3g/Transformable.html#getCompositeTransform(javax.microedition.m3g.Transform)">getCompositeTransform</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#getOrientation(float[])">getOrientation</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#getScale(float[])">getScale</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#getTransform(javax.microedition.m3g.Transform)">getTransform</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#getTranslation(float[])">getTranslation</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#postRotate(float, float, float, float)">postRotate</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#preRotate(float, float, float, float)">preRotate</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#scale(float, float, float)">scale</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#setOrientation(float, float, float, float)">setOrientation</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#setScale(float, float, float)">setScale</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#setTransform(javax.microedition.m3g.Transform)">setTransform</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#setTranslation(float, float, float)">setTranslation</A>, <A HREF="../../../javax/microedition/m3g/Transformable.html#translate(float, float, float)">translate</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.microedition.m3g.Object3D"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.microedition.m3g.<A HREF="../../../javax/microedition/m3g/Object3D.html">Object3D</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/microedition/m3g/Object3D.html#addAnimationTrack(javax.microedition.m3g.AnimationTrack)">addAnimationTrack</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#animate(int)">animate</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#duplicate()">duplicate</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#find(int)">find</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getAnimationTrack(int)">getAnimationTrack</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getAnimationTrackCount()">getAnimationTrackCount</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getReferences(javax.microedition.m3g.Object3D[])">getReferences</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getUserID()">getUserID</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getUserObject()">getUserObject</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#removeAnimationTrack(javax.microedition.m3g.AnimationTrack)">removeAnimationTrack</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#setUserID(int)">setUserID</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#setUserObject(java.lang.Object)">setUserObject</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Mesh(javax.microedition.m3g.VertexBuffer, javax.microedition.m3g.IndexBuffer, javax.microedition.m3g.Appearance)"><!-- --></A><H3>
Mesh</H3>
<PRE>
public <B>Mesh</B>(<A HREF="../../../javax/microedition/m3g/VertexBuffer.html">VertexBuffer</A> vertices, <A HREF="../../../javax/microedition/m3g/IndexBuffer.html">IndexBuffer</A> submesh, <A HREF="../../../javax/microedition/m3g/Appearance.html">Appearance</A> appearance)</PRE>
<DL>
<DD><p>Constructs a new Mesh consisting of only one submesh. Rendering and picking of the Mesh is initially disabled if the Appearance is set to null.</p>
<P>
<DT><B>Parameters:</B><DD><CODE>vertices</CODE> - a VertexBuffer to use for this mesh<DD><CODE>submesh</CODE> - an IndexBuffer defining the triangle strips to draw<DD><CODE>appearance</CODE> - an Appearance to use for this mesh, or null<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>vertices</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if <code>submesh</code> is null</DL>
<HR>
<A NAME="Mesh(javax.microedition.m3g.VertexBuffer, javax.microedition.m3g.IndexBuffer[], javax.microedition.m3g.Appearance[])"><!-- --></A><H3>
Mesh</H3>
<PRE>
public <B>Mesh</B>(<A HREF="../../../javax/microedition/m3g/VertexBuffer.html">VertexBuffer</A> vertices, <A HREF="../../../javax/microedition/m3g/IndexBuffer.html">IndexBuffer</A>[] submeshes, <A HREF="../../../javax/microedition/m3g/Appearance.html">Appearance</A>[] appearances)</PRE>
<DL>
<DD><p>Constructs a new Mesh with the given VertexBuffer and submeshes. The number of submeshes is set equal to the length of the <code>submeshes</code> array. The <code>appearances</code> array is parallel to that, and must have at least as many elements. A null Appearance disables rendering and picking of the corresponding submesh. If the array itself is null, all appearances are initialized to null.</p>
<P>
<DT><B>Parameters:</B><DD><CODE>vertices</CODE> - a VertexBuffer to use for all submeshes in this mesh<DD><CODE>submeshes</CODE> - an IndexBuffer array defining the submeshes to draw<DD><CODE>appearances</CODE> - an Appearance array parallel to <code>submeshes</code><DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>vertices</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if <code>submeshes</code> is null<DD><CODE>java.lang.NullPointerException</CODE> - if any element in <code>submeshes</code> is null<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>submeshes</code> is empty<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>appearances.length < submeshes.length</code></DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="setAppearance(int, javax.microedition.m3g.Appearance)"><!-- --></A><H3>
setAppearance</H3>
<PRE>
public void <B>setAppearance</B>(int index, <A HREF="../../../javax/microedition/m3g/Appearance.html">Appearance</A> appearance)</PRE>
<DL>
<DD><p>Sets the Appearance for the specified submesh.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the submesh to set the Appearance of<DD><CODE>appearance</CODE> - Appearance to set for the submesh at <code>index</code>, or null to disable the submesh<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>(index < 0) || (index >= getSubmeshCount)</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/Mesh.html#getAppearance(int)"><CODE>getAppearance</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getAppearance(int)"><!-- --></A><H3>
getAppearance</H3>
<PRE>
public <A HREF="../../../javax/microedition/m3g/Appearance.html">Appearance</A> <B>getAppearance</B>(int index)</PRE>
<DL>
<DD><p>Gets the current Appearance of the specified submesh.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the submesh to get the Appearance of<DT><B>Returns:</B><DD>current Appearance of the submesh at <code>index</code><DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>(index < 0) || (index >= getSubmeshCount)</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/Mesh.html#setAppearance(int, javax.microedition.m3g.Appearance)"><CODE>setAppearance</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getIndexBuffer(int)"><!-- --></A><H3>
getIndexBuffer</H3>
<PRE>
public <A HREF="../../../javax/microedition/m3g/IndexBuffer.html">IndexBuffer</A> <B>getIndexBuffer</B>(int index)</PRE>
<DL>
<DD><p>Retrieves the submesh at the given index.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the submesh to get<DT><B>Returns:</B><DD>current IndexBuffer at <code>index</code><DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>(index < 0) || (index >= getSubmeshCount)</code></DL>
</DD>
</DL>
<HR>
<A NAME="getVertexBuffer()"><!-- --></A><H3>
getVertexBuffer</H3>
<PRE>
public <A HREF="../../../javax/microedition/m3g/VertexBuffer.html">VertexBuffer</A> <B>getVertexBuffer</B>()</PRE>
<DL>
<DD><p>Gets the vertex buffer of this Mesh. This is always the original VertexBuffer that was supplied at construction. The VertexBuffer is never written to by the implementation. Specifically, the results of morphing (MorphingMesh) and skinning (SkinnedMesh) are <i>not</i> written to the VertexBuffer, nor are they exposed to the application by any other means.</p> <p>In the case of a MorphingMesh, this VertexBuffer represents the base mesh. The morph target VertexBuffers can be retrieved with the <A HREF="../../../javax/microedition/m3g/MorphingMesh.html#getMorphTarget(int)"><CODE>getMorphTarget</CODE></A> method in MorphingMesh.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the (base) VertexBuffer of this Mesh</DL>
</DD>
</DL>
<HR>
<A NAME="getSubmeshCount()"><!-- --></A><H3>
getSubmeshCount</H3>
<PRE>
public int <B>getSubmeshCount</B>()</PRE>
<DL>
<DD><p>Gets the number of submeshes in this Mesh. This is always at least 1.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the number of submeshes in this Mesh</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Mesh.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<EM><B>Nov 19, 2003</B></EM></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/microedition/m3g/Material.html"><B>PREV CLASS</B></A>
<A HREF="../../../javax/microedition/m3g/MorphingMesh.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Mesh.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_javax.microedition.m3g.Node">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<EM>Copyright © 2003 Nokia Corporation. See the <a href="../../../overview-summary.html#Copyright">Copyright Notice</a> for details.</EM>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -