Guard Divide by Zero in PolyAreaCentroid()
Open
@srwopschall is already working on this.
Since Nov 8, 2024.
- Dominant language
- C++
- Stars
- 39
- Forks
- 11
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 2
Description
In GeomUtilities.cpp, there is an unguarded divide by zero in PolyAreaCentroid(). In principle a zero area face is a valid configuration and we want to guard against this (though unlikely).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.