Ticket #6019 (closed Bugs: fixed)
Convex hull and Area, combined, sometimes give wrong result
|Reported by:||Crispin Cooper <cooperch@…>||Owned by:||barendgehrels|
|Milestone:||To Be Determined||Component:||geometry|
|Keywords:||convex hull area||Cc:|
Attached is a program which calculates convex hull from a number of points. The three points actually on the hull are
(0,0) (0,105) (0,103)
making the hull a triangle with area 1407.5. However, the program (msvc compiler) returns 1406, with the points inserted in the order shown in the cpp file.
If all points except the three listed above are removed from the program, the answer returns to 1407.5.
Probably this is just me being stupid. In any case thank you very much for your help!
- Status changed from new to closed
- Resolution set to worksforme
- Status changed from closed to reopened
- Resolution worksforme deleted
- Status changed from reopened to closed
- Resolution set to fixed