-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix normal calculation for CylinderGeometry
The calculated normals of the curved side of the cylinder are wrong when the bottom and top radius are not equal, as the code assumes that the normal is always at right angles to the cylinder axis. This commit handles the more general case where the radii at the ends of the cylinder are not equal.
- Loading branch information
1 parent
62b2312
commit c3eaacb
Showing
1 changed file
with
11 additions
and
9 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