Click or drag to resize
AB4D logo

OptimizedPointMeshTGetPositionIndexesAroundRay(Ray, Single, Boolean, Int32) Method

GetPositionIndexesAroundRay method returns a list of position indexes that are closer to the ray then the specified maxDistance. By default (when orderByDistanceToRayPosition is true) the position are ordered by the distance to the ray's Position. When maxResultsCount is set to a bigger number then 0, then it is possible to limit the number of returned indexes. To prevent creating List object on each call to this method, call the overload that takes the List object as ref.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public List<int> GetPositionIndexesAroundRay(
	Ray ray,
	float maxDistance,
	bool orderByDistanceToRayPosition = true,
	int maxResultsCount = 0
)

Parameters

ray  Ray
SharpDX.Ray
maxDistance  Single
distance as float
orderByDistanceToRayPosition  Boolean  (Optional)
when true (by default) the position are ordered by the distance to the ray's Position; when false then the positions are unordered
maxResultsCount  Int32  (Optional)
when bigger then 0, then the number of items in the List is limited (no additional positions are checked).

Return Value

ListInt32
a list of position indexes that are closer to the ray then the specified maxDistance
See Also