📄 pickintersection.html
字号:
<CODE> <A HREF="../../../../../javax/vecmath/TexCoord3f.html" title="class in javax.vecmath">TexCoord3f</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPointTextureCoordinate(int)">getPointTextureCoordinate</A></B>(int index)</CODE><BR> Returns the texture coordinate of the intersection point at the specifed index in the specified texture coordinate set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveColorIndices()">getPrimitiveColorIndices</A></B>()</CODE><BR> Get the color indices for the intersected primitive.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/vecmath/Color4f.html" title="class in javax.vecmath">Color4f</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveColors()">getPrimitiveColors</A></B>()</CODE><BR> Get the colors of the intersected primitive.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveCoordinateIndices()">getPrimitiveCoordinateIndices</A></B>()</CODE><BR> Get the coordinates indices for the intersected primitive.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveCoordinates()">getPrimitiveCoordinates</A></B>()</CODE><BR> Get the local coordinates intersected primitive</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveCoordinatesVW()">getPrimitiveCoordinatesVW</A></B>()</CODE><BR> Get VWorld coordinates of the intersected primitive</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveNormalIndices()">getPrimitiveNormalIndices</A></B>()</CODE><BR> Get the normal indices for the intersected primitive.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveNormals()">getPrimitiveNormals</A></B>()</CODE><BR> Get the normals of the intersected primitive.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveTexCoordIndices(int)">getPrimitiveTexCoordIndices</A></B>(int index)</CODE><BR> Get the texture coordinate indices for the intersected primitive at the specifed index in the specified texture coordinate set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/vecmath/TexCoord3f.html" title="class in javax.vecmath">TexCoord3f</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveTexCoords(int)">getPrimitiveTexCoords</A></B>(int index)</CODE><BR> Get the texture coordinates of the intersected primitive at the specifed index in the specified texture coordinate set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#getPrimitiveVertexIndices()">getPrimitiveVertexIndices</A></B>()</CODE><BR> Get vertex indices of the intersected primitive</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/picking/PickIntersection.html#toString()">toString</A></B>()</CODE><BR> String representation of this object</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>String representation of this object<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPointCoordinatesVW()"><!-- --></A><H3>getPointCoordinatesVW</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> <B>getPointCoordinatesVW</B>()</PRE><DL><DD>Returns the coordinates of the intersection point (world coordinates), if available.<P><DD><DL><DT><B>Returns:</B><DD>coordinates of the point</DL></DD></DL><HR><A NAME="getDistance()"><!-- --></A><H3>getDistance</H3><PRE>public double <B>getDistance</B>()</PRE><DL><DD>Get the distance from the PickShape start point to the intersection point<P><DD><DL><DT><B>Returns:</B><DD>the distance to the intersection point, if available.</DL></DD></DL><HR><A NAME="getPrimitiveCoordinatesVW()"><!-- --></A><H3>getPrimitiveCoordinatesVW</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A>[] <B>getPrimitiveCoordinatesVW</B>()</PRE><DL><DD>Get VWorld coordinates of the intersected primitive<P><DD><DL><DT><B>Returns:</B><DD>an array of Point3d's for the primitive that was picked</DL></DD></DL><HR><A NAME="getPrimitiveVertexIndices()"><!-- --></A><H3>getPrimitiveVertexIndices</H3><PRE>public int[] <B>getPrimitiveVertexIndices</B>()</PRE><DL><DD>Get vertex indices of the intersected primitive<P><DD><DL><DT><B>Returns:</B><DD>an array which contains the list of indices</DL></DD></DL><HR><A NAME="getGeometryArrayIndex()"><!-- --></A><H3>getGeometryArrayIndex</H3><PRE>public int <B>getGeometryArrayIndex</B>()</PRE><DL><DD>Returns the index of the intersected GeometryArray into the geometry arrays in the PickResult<P><DD><DL></DL></DD></DL><HR><A NAME="getGeometryArray()"><!-- --></A><H3>getGeometryArray</H3><PRE>public <A HREF="../../../../../javax/media/j3d/GeometryArray.html" title="class in javax.media.j3d">GeometryArray</A> <B>getGeometryArray</B>()</PRE><DL><DD>Returns the GeometryArray for the intersection<P><DD><DL></DL></DD></DL><HR><A NAME="geometryIsIndexed()"><!-- --></A><H3>geometryIsIndexed</H3><PRE>public boolean <B>geometryIsIndexed</B>()</PRE><DL><DD>Returns true if the geometry is indexed<P><DD><DL></DL></DD></DL><HR><A NAME="getClosestVertexCoordinates()"><!-- --></A><H3>getClosestVertexCoordinates</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> <B>getClosestVertexCoordinates</B>()</PRE><DL><DD>Get coordinates of closest vertex (local)<P><DD><DL><DT><B>Returns:</B><DD>the coordinates of the vertex closest to the intersection point</DL></DD></DL><HR><A NAME="getClosestVertexCoordinatesVW()"><!-- --></A><H3>getClosestVertexCoordinatesVW</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> <B>getClosestVertexCoordinatesVW</B>()</PRE><DL><DD>Get coordinates of closest vertex (world)<P><DD><DL><DT><B>Returns:</B><DD>the coordinates of the vertex closest to the intersection point</DL></DD></DL><HR><A NAME="getClosestVertexIndex()"><!-- --></A><H3>getClosestVertexIndex</H3><PRE>public int <B>getClosestVertexIndex</B>()</PRE><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -