⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pickintersection.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DD><DL></DL></DD></DL><HR><A NAME="getPointCoordinatesVW()"><!-- --></A><H3>getPointCoordinatesVW</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html">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">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">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">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">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="getPrimitiveCoordinateIndices()"><!-- --></A><H3>getPrimitiveCoordinateIndices</H3><PRE>public int[] <B>getPrimitiveCoordinateIndices</B>()</PRE><DL><DD>Get the coordinates indices for the intersected primitive.  For a non-indexed       primitive, this will be the same as the primitive vertex indices<P><DD><DL><DT><B>Returns:</B><DD>an array indices</DL></DD></DL><HR><A NAME="getPrimitiveCoordinates()"><!-- --></A><H3>getPrimitiveCoordinates</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A>[] <B>getPrimitiveCoordinates</B>()</PRE><DL><DD>Get the local coordinates intersected primitive<P><DD><DL><DT><B>Returns:</B><DD>an array of Point3d's for the primitive that was intersected</DL></DD></DL><HR><A NAME="getPrimitiveNormalIndices()"><!-- --></A><H3>getPrimitiveNormalIndices</H3><PRE>public int[] <B>getPrimitiveNormalIndices</B>()</PRE><DL><DD>Get the normal indices for the intersected primitive.  For a non-indexed       primitive, this will be the same as the primitive vertex indices       If the geometry array does not contain normals this will return null<P><DD><DL><DT><B>Returns:</B><DD>an array indices</DL></DD></DL><HR><A NAME="getPrimitiveNormals()"><!-- --></A><H3>getPrimitiveNormals</H3><PRE>public <A HREF="../../../../../javax/vecmath/Vector3f.html">Vector3f</A>[] <B>getPrimitiveNormals</B>()</PRE><DL><DD>Get the normals of the intersected primitive.  This will return null if       the primitive does not contain normals.<P><DD><DL><DT><B>Returns:</B><DD>an array of Point3d's for the primitive that was intersected</DL></DD></DL><HR><A NAME="getPrimitiveColorIndices()"><!-- --></A><H3>getPrimitiveColorIndices</H3><PRE>public int[] <B>getPrimitiveColorIndices</B>()</PRE><DL><DD>Get the color indices for the intersected primitive.  For a non-indexed       primitive, this will be the same as the primitive vertex indices       If the geometry array does not contain colors this will return null.<P><DD><DL><DT><B>Returns:</B><DD>an array indices</DL></DD></DL><HR><A NAME="getPrimitiveColors()"><!-- --></A><H3>getPrimitiveColors</H3><PRE>public <A HREF="../../../../../javax/vecmath/Color4f.html">Color4f</A>[] <B>getPrimitiveColors</B>()</PRE><DL><DD>Get the colors of the intersected primitive.  This will return null if       the primitive does not contain colors.  If the geometry was defined       using GeometryArray.COLOR_3, the 'w' value of the color will be set to 1.0.<P><DD><DL><DT><B>Returns:</B><DD>an array of Point3d's for the primitive that was intersected</DL></DD></DL><HR><A NAME="getPrimitiveTexCoordIndices(int)"><!-- --></A><H3>getPrimitiveTexCoordIndices</H3><PRE>public int[] <B>getPrimitiveTexCoordIndices</B>(int&nbsp;index)</PRE><DL><DD>Get the texture coordinate indices for the intersected primitive at the specifed        index in the specified texture coordinate set.  For a   non-indexed       primitive, this will be the same as the primitive vertex indices       If the geometry array does not contain texture coordinates, this will        return null.<P><DD><DL><DT><B>Returns:</B><DD>an array indices</DL></DD></DL><HR><A NAME="getPrimitiveTexCoords(int)"><!-- --></A><H3>getPrimitiveTexCoords</H3><PRE>public <A HREF="../../../../../javax/vecmath/TexCoord3f.html">TexCoord3f</A>[] <B>getPrimitiveTexCoords</B>(int&nbsp;index)</PRE><DL><DD>Get the texture coordinates of the intersected primitive at the specifed        index in the specified texture coordinate set.       null if the primitive does not contain texture coordinates.         If the geometry was defined       using GeometryArray.TEXTURE_COORDINATE_2, the 'z' value of the texture       coordinate will be set to 0.0.<P><DD><DL><DT><B>Returns:</B><DD>an array of TexCoord3f's for the primitive that was intersected</DL></DD></DL><HR><A NAME="getPointCoordinates()"><!-- --></A><H3>getPointCoordinates</H3><PRE>public <A HREF="../../../../../javax/vecmath/Point3d.html">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="getPointNormal()"><!-- --></A><H3>getPointNormal</H3><PRE>public <A HREF="../../../../../javax/vecmath/Vector3f.html">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><A NAME="getPointColor()"><!-- --></A><H3>getPointColor</H3><PRE>public <A HREF="../../../../../javax/vecmath/Color4f.html">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="getPointTextureCoordinate(int)"><!-- --></A><H3>getPointTextureCoordinate</H3><PRE>public <A HREF="../../../../../javax/vecmath/TexCoord3f.html">TexCoord3f</A> <B>getPointTextureCoordinate</B>(int&nbsp;index)</PRE><DL><DD>Returns the texture coordinate of the intersection point at the specifed        index in the specified texture coordinate set.       Returns null if the geometry       does not contain texture coordinates.  If the geometry was defined with       GeometryArray.TEXTURE_COORDINATE_3, the 'z' component of the texture       coordinate will initialized to 0.0<P><DD><DL><DT><B>Returns:</B><DD>texture coordinate at the intersection point.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/sun/j3d/utils/picking/PickCanvas.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/sun/j3d/utils/picking/PickResult.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>  &nbsp;&nbsp;<A HREF="PickIntersection.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -