Node3Proximity

References
public class Node3Proximity
Maintains settings and results for node proximity searches.

Constructors

Node3Proximity

#
Create a new instance with a specific search result count
public Node3Proximity(
search_start,
Node to search from.
search_start_index,
Index of base node (this index will be ignored during the search).
max_results,
Maximum number of results to return.
min_distance,
Minimum allowed distance for search results.
max_distance
Maximum allowed distance for search results.
)

Node3Proximity

#
Create a new instance with a specific search result count
public Node3Proximity(
search_start,
Node to search from.
search_start_index,
Index of base node (this index will be ignored during the search).
max_results
Maximum number of results to return.
)

Node3Proximity

#
Create a new instance for a single result.
public Node3Proximity(
search_start,
Node to search from.
search_start_index
Index of base node (this index will be ignored during the search).
)

Fields

m_base

#
protected Node3 m_base

m_base_index

#
protected int m_base_index

m_cur_count

#
protected int m_cur_count

m_D

#
protected List<double> m_D

m_I

#
protected List<int> m_I

m_max_2

#
protected double m_max_2

m_max_count

#
protected int m_max_count

m_max_distance

#
protected double m_max_distance

m_min_2

#
protected double m_min_2

m_min_distance

#
protected double m_min_distance

Properties

CurrentCount

#
Gets the number of results currently stored.
public int CurrentCount { get; }

DistanceList

#
Gets a list representing the sorted distances in the current solution.
public List<double> DistanceList { get; }

FurthestDistance

#
Gets the distance to the furthest point in the current solution.
public double FurthestDistance { get; }

FurthestDistanceSquared

#
Gets the squared distance to the furthest point in the current solution.
public double FurthestDistanceSquared { get; }

FurthestPoint

#
Gets the index of the furthest point in the current solution.
public int FurthestPoint { get; }

IndexList

#
Gets a list representing the sorted indices in the current solution.
public List<int> IndexList { get; }

MaximumCount

#
Gets the maximum result count.
public int MaximumCount { get; }

MaxSearchRadius

#
Gets the maximum search radius
public double MaxSearchRadius { get; }

MaxSearchRadiusSquared

#
Gets the maximum search radius, squared
public double MaxSearchRadiusSquared { get; }

MinSearchRadius

#
Gets the minimum search radius
public double MinSearchRadius { get; }

MinSearchRadiusSquared

#
Gets the minimum search radius, squared
public double MinSearchRadiusSquared { get; }

NearestDistance

#
Gets the distance to the nearest point in the current solution.
public double NearestDistance { get; }

NearestDistanceSquared

#
Gets the squared distance to the nearest point in the current solution.
public double NearestDistanceSquared { get; }

NearestPoint

#
Gets the index of the nearest point in the current solution.
public int NearestPoint { get; }

Start

#
Gets the node from which the search is performed
public Node3 Start { get; }

StartIndex

#
Gets the index of the node from which the search is performed. If the search start node is not part of the search set, this index will be negative.
public int StartIndex { get; }

Methods

DistanceRange

#
Gets the squared minimum and maximum distance
public void DistanceRange(
ref double
d0,
Squared minimum distance in current solution.
ref double
d1
Squared maximum distance in current solution.
)

RegisterNode

#
Register a new node with this collection.
public bool RegisterNode(
node,
Node to register
index
Index of node
)
True if node was accepted, false if the node is too far or too close.

ResetLists

#
This function resets all search results and clears all caches. It is called once prior to a search operation.
public void ResetLists()