Struct SwiftOctreeOptions
- Namespace
- SwiftCollections.Query
- Assembly
- SwiftCollections.dll
Controls node subdivision behavior for SwiftOctree<TKey, TVolume>.
public readonly struct SwiftOctreeOptions : IEquatable<SwiftOctreeOptions>
- Implements
- Inherited Members
Constructors
SwiftOctreeOptions(int, int)
Initializes a new instance of the SwiftOctreeOptions struct.
public SwiftOctreeOptions(int maxDepth, int nodeCapacity)
Parameters
maxDepthintThe maximum child depth allowed below the root node.
nodeCapacityintThe maximum number of entries a node should hold before attempting to split.
SwiftOctreeOptions(int, int, bool)
Initializes a new instance of the SwiftOctreeOptions struct.
public SwiftOctreeOptions(int maxDepth, int nodeCapacity, bool enableMergeOnRemove)
Parameters
maxDepthintThe maximum child depth allowed below the root node.
nodeCapacityintThe maximum number of entries a node should hold before attempting to split.
enableMergeOnRemoveboolWhether empty child regions should collapse back into their parent after removals.
Properties
EnableMergeOnRemove
Gets a value indicating whether nodes should merge after removals leave sparse children.
public bool EnableMergeOnRemove { get; }
Property Value
MaxDepth
Gets the maximum child depth allowed below the root node.
public int MaxDepth { get; }
Property Value
NodeCapacity
Gets the preferred number of entries per node before subdivision is attempted.
public int NodeCapacity { get; }
Property Value
Methods
Equals(SwiftOctreeOptions)
public bool Equals(SwiftOctreeOptions other)
Parameters
otherSwiftOctreeOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(SwiftOctreeOptions, SwiftOctreeOptions)
Determines whether two SwiftOctreeOptions instances are equal.
public static bool operator ==(SwiftOctreeOptions left, SwiftOctreeOptions right)
Parameters
leftSwiftOctreeOptionsrightSwiftOctreeOptions
Returns
operator !=(SwiftOctreeOptions, SwiftOctreeOptions)
Determines whether two SwiftOctreeOptions instances are not equal.
public static bool operator !=(SwiftOctreeOptions left, SwiftOctreeOptions right)
Parameters
leftSwiftOctreeOptionsrightSwiftOctreeOptions