Click or drag to resize
AB4D logo

OptimizedPointMeshTGetPositionIndexesAroundRay(Ray, Single, ListInt32, 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.

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

Parameters

ray  Ray
SharpDX.Ray
maxDistance  Single
distance as float
positionIndexes  ListInt32
a reference to a List of integer that will be filled by position indexes
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).
See Also