Skip to content

Commit e626f90

Browse files
committed
Merge pull request #3129 from marktucker/dev_capsule_1_meshpoints
Fix the code for calculating mesh points on Capsule_1 prims (Internal change: 2332563)
2 parents da68b0e + 21edb4b commit e626f90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pxr/imaging/geomUtil/capsuleMeshGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ GeomUtilCapsuleMeshGenerator::_GeneratePointsImpl(
104104

105105
// Now, the latidude at which to clip the sphere is the angle of
106106
// this point from the horizontal:
107-
latitudeRange = acos(rDiff / height);
107+
latitudeRange = atan(rDiff / height);
108108
}
109109

110110
// Bottom point:

0 commit comments

Comments
 (0)