computeAverageDirection
public int computeAverageDirection(Vector3d dir,
Point3d pos,
double rad)
Computes the average direction in the vicinity of a point based on the
line segments contained in a PolylineMesh. Returns the number of
supporting line segments used for the calculation. If no segments were
found, the method returns 0 and the direction is undefined.
- Parameters:
dir - returns the normalized direction
pos - position at which direction should be computed
rad - radius of influence within which polyline mesh segments are
considerd