📄 pickintersection.html
字号:
<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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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/pickfast/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><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="PickIntersection(javax.media.j3d.Transform3D, javax.media.j3d.PickInfo.IntersectionInfo)"><!-- --></A><H3>PickIntersection</H3><PRE>public <B>PickIntersection</B>(<A HREF="../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> localToVWorld, <A HREF="../../../../../javax/media/j3d/PickInfo.IntersectionInfo.html" title="class in javax.media.j3d">PickInfo.IntersectionInfo</A> intersectionInfo)</PRE><DL><DD>Constructor<P><DL><DT><B>Parameters:</B><DD><CODE>intersectionInfo</CODE> - The IntersectionInfo this intersection is part of.</DL></DL><!-- ============ 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="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><DD>Get index of closest vertex<P><DD><DL><DT><B>Returns:</B><DD>the index of the closest vertex</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="getPointColor()"><!-- --></A><H3>getPointColor</H3><PRE>public <A HREF="../../../../../javax/vecmath/Color4f.html" title="class in javax.vecmath">Color4f</A> <B>getPointColor</B>()</PRE><DL><DD>Returns the color of the intersection point. Returns null if the geometry does not contain colors. If the geometry was defined with GeometryArray.COLOR_3, the 'w' component of the color will initialized to 1.0<P><DD><DL><DT><B>Returns:</B><DD>color at the intersection point.</DL></DD></DL><HR><A NAME="getPointCoordinates()"><!-- --></A><H3>getPointCoordinates</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> <B>getPointCoordinates</B>()</PRE><DL><DD>Returns the coordinates of the intersection point (local coordinates), if available.<P><DD><DL><DT><B>Returns:</B><DD>coordinates of the intersection point</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="getPointNormal()"><!-- --></A><H3>getPointNormal</H3><PRE>public <A HREF="../../../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A> <B>getPointNormal</B>()</PRE><DL><DD>Returns the normal of the intersection point. Returns null if the geometry does not contain normals.<P><DD><DL><DT><B>Returns:</B><DD>normal at the intersection point.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -