Skip to content

FindHull Integer overrun #393

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. pass list (Int32) to FindHull with values slightly less than 2E9
2.
3.

What is the expected output? What do you see instead?

expected: Convex Hull line points (polygon). 

instead sometimes: nothing returned, call results in exception; However Call to 
FindHull (C# VS2013) works as expected If list value magnitudes are reduced a 
bit; Success with:  ~< 1/2 Int32.MaxValue... perhaps more depending upon data. 
Results are varied (not consistent). 


What version of the product are you using?

AForge.Math.dll is reported @ 2.2.5.0  
please email me @:  ASC@GoMeasure.com   if u desire me to dig up more  detail. 


Please provide any additional information below.

FindHull is being called from a full VS2013 Pro in C# Windows (desktop) 
project. 
We desire ConvexHull from double decimal data, so we "scale" the decimal data 
to integers for needed res to FindHull. 
Sometimes FindHull works, sometimes not (with ~exact same in data set.. perhaps 
slight roundoff diffs).
This is observed while in IDE or exe. 

I can likely use present FindHull IF I know what the variance is with its 
Int32. 
Thank you in advance for reply. Bests! rjf. 



Original issue reported on code.google.com by SStokes9...@gmail.com on 2 Oct 2014 at 2:12

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions