Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the geometric center for shape first vertex
instead of the bounding box center. The bounding box center can be on an edge (consider a right triangle). Having the first vertex on an edge can make outline computation wrong by failing to determine if an edge normal points inward or outward. The geometric center being stricly inside the shape and not on an edge, using it instead makes outline computation correct.
- Loading branch information