Skip to content

Commit 887467e

Browse files
committed
Fix bug in new cublic spline sphere sweep bounding box computations.
1 parent 6345350 commit 887467e

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

changes.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ should be located in the same directory as this file is.
2424
------------------------------------------------------------------------------
2525

2626

27+
Changes between 3.7.1-beta.6 and 3.7.1-beta.7
28+
=============================================
29+
30+
This version is essentially a hotfix for some issues with beta.6.
31+
32+
Fixed or Mitigated Bugs
33+
-----------------------
34+
35+
Miscellaneous:
36+
37+
- Fixed a bug in the new `cubic_spline` sphere sweep bounding code.
38+
39+
2740
Changes between 3.7.1-beta.5 and 3.7.1-beta.6
2841
=============================================
2942

revision.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@ Notes:
2626
http://news.povray.org/[email protected]
2727
------------------------------------------------------------------------------
2828

29+
------------------------------------------------------------------------------
30+
POV-Ray v3.7.1-beta.7
31+
------------------------------------------------------------------------------
32+
2933
------------------------------------------------------------------------------
3034
POV-Ray v3.7.1-beta.6
3135
------------------------------------------------------------------------------
3236

37+
Commit 6345350 on 2017-05-07 by Christoph Lipka
38+
39+
Update change log.
40+
3341
Commit ab22c3e on 2017-05-07 by Christoph Lipka
3442

3543
Fix for a bug in recent commit ce8b193.

source/core/shape/spheresweep.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,8 @@ void SphereSweep::Compute_BBox()
12711271
tempSphere[0] = Modeling_Sphere[i];
12721272
tempSphere[1].Center = Modeling_Sphere[i].Center + (Modeling_Sphere[i+1].Center - Modeling_Sphere[i-1].Center) / 6;
12731273
tempSphere[1].Radius = Modeling_Sphere[i].Radius + (Modeling_Sphere[i+1].Radius - Modeling_Sphere[i-1].Radius) / 6;
1274-
tempSphere[2].Center = Modeling_Sphere[i+1].Center + (Modeling_Sphere[i].Center - Modeling_Sphere[i+1].Center) / 6;
1275-
tempSphere[2].Radius = Modeling_Sphere[i+1].Radius + (Modeling_Sphere[i].Radius - Modeling_Sphere[i+1].Radius) / 6;
1274+
tempSphere[2].Center = Modeling_Sphere[i+1].Center + (Modeling_Sphere[i].Center - Modeling_Sphere[i+2].Center) / 6;
1275+
tempSphere[2].Radius = Modeling_Sphere[i+1].Radius + (Modeling_Sphere[i].Radius - Modeling_Sphere[i+2].Radius) / 6;
12761276
tempSphere[3] = Modeling_Sphere[i+1];
12771277

12781278
// From the Bezier-style control spheres, compute the bounding box.

0 commit comments

Comments
 (0)