public class PickInfo.IntersectionInfo extends Object
If the Shape3D being picked has multiple geometry arrays, the possible arrays of IntersectionInfo are stored in the PickInfo and referred to by a geometry index. If the picked geometry is of type, Text3D or CompressGeometry, getVertexIndices is invalid. If the picked Node is an Morph object, the geometry used in pick computation is alway at index 0.
Modifier and Type | Method and Description |
---|---|
double |
getDistance()
Retrieves the distance between the start point of the pickShape and the
intersection point.
|
Geometry |
getGeometry()
Retrieves the reference to the intersected geometry in the picked object, either a Shape3D or Morph.
|
int |
getGeometryIndex()
Retrieves the index to the intersected geometry in the picked node, either a Shape3D or Morph.
|
Point3d |
getIntersectionPoint()
Retrieves the reference to the intersection point in the pickable node.
|
int[] |
getVertexIndices()
Retrieves the vertex indices of the intersected primitive in the geometry.
|
public int getGeometryIndex()
public Geometry getGeometry()
public Point3d getIntersectionPoint()
public double getDistance()
public int[] getVertexIndices()
Copyright © 2016–2022 SciJava. All rights reserved.