We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952a863 commit d3f37e7Copy full SHA for d3f37e7
openvdb/openvdb/tools/impl/LevelSetTubesImpl.h
@@ -932,7 +932,7 @@ class TaperedCapsuleVoxelizer
932
// but if mORad2 < 0, truncate the line segment to where radius equals 0
933
// this way things like pullyPoints make geometric sense.
934
if (mORad2 < ScalarType(0)){
935
- const ScalarType t = (r2 <= r1 ? -mRad2 : mRad1)/(mRad1 - mRad2);
+ const ScalarType t = (r2 <= r1 ? r2/(r2 - r1) : r1/(r1 - r2));
936
937
const math::Vec3<ScalarType> pt_0 = r2 <= r1 ? pt1 : pt2;
938
const ScalarType r_0 = r2 <= r1 ? r1 : r2;
0 commit comments