01-08-2018, 01:29 PM 
(This post was last modified: 01-08-2018, 01:35 PM by tim.rutter.)
		
	
	
		Hi,
I am trying to use the LineSelectorData with a MultiPolylineVisual3D. I have mainly copied the example in the powertoys examples (as suggested in a previous thread). When I call the method GetClosestDistance I get an exception thrown:
"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
The LineVisual3D property is definitely not null and is a MultiPolylineVisual3D which contains data which in this case is 1 list of points as I'm considering a simple case initially.
If i swap to a PolyLineVisual3D using the first list of points from the MultiPolylineVisual3D, its works.
Any ideas why?
	
	
	
I am trying to use the LineSelectorData with a MultiPolylineVisual3D. I have mainly copied the example in the powertoys examples (as suggested in a previous thread). When I call the method GetClosestDistance I get an exception thrown:
"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
The LineVisual3D property is definitely not null and is a MultiPolylineVisual3D which contains data which in this case is 1 list of points as I'm considering a simple case initially.
If i swap to a PolyLineVisual3D using the first list of points from the MultiPolylineVisual3D, its works.
Any ideas why?

