-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shape outline normal computation
The previous implementation could fail to determine if normals had to be flipped or not: it assumed the first vertex position was strictly inside the shape. This position being set to the bounding box's center, it is possible for it be on an edge of the shape (consider a right triangle).
- Loading branch information
Showing
1 changed file
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters