Skip to content

Commit 4d21059

Browse files
committed
Minor changes to debug sanity checks.
1 parent 68fa749 commit 4d21059

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

source/core/material/pattern.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5983,7 +5983,7 @@ DBL DensityFilePattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *
59835983
f222 = (DBL)Data->Density8[z2 * Data->Sy * Data->Sx + y2 * Data->Sx + x2] / (DBL)UNSIGNED8_MAX;
59845984
}
59855985
else
5986-
POV_ASSERT(false);
5986+
POV_PATTERN_ASSERT (false);
59875987

59885988
density = ((f111 * xi + f112 * xx) * yi + (f121 * xi + f122 * xx) * yy) * (1.0 - zz) +
59895989
((f211 * xi + f212 * xx) * yi + (f221 * xi + f222 * xx) * yy) * zz;
@@ -6638,7 +6638,7 @@ DBL TriangularPattern::Evaluate(const Vector3d& EPoint, const Intersection *pIse
66386638
answer = 3.0;
66396639
break;
66406640
default:
6641-
POV_ASSERT(false);
6641+
POV_PATTERN_ASSERT (false);
66426642
break;
66436643
}
66446644
}
@@ -6701,7 +6701,7 @@ DBL JuliaPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIsect
67016701
mindist2 = a2+b2;
67026702

67036703
it_max = maxIterations;
6704-
POV_ASSERT(it_max > 0);
6704+
POV_PATTERN_ASSERT (it_max > 0);
67056705

67066706
for (col = 0; col < it_max; col++)
67076707
{
@@ -6769,7 +6769,7 @@ DBL Julia3Pattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIsec
67696769
mindist2 = a2+b2;
67706770

67716771
it_max = maxIterations;
6772-
POV_ASSERT(it_max > 0);
6772+
POV_PATTERN_ASSERT (it_max > 0);
67736773

67746774
for (col = 0; col < it_max; col++)
67756775
{
@@ -6837,7 +6837,7 @@ DBL Julia4Pattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIsec
68376837
mindist2 = a2+b2;
68386838

68396839
it_max = maxIterations;
6840-
POV_ASSERT(it_max > 0);
6840+
POV_PATTERN_ASSERT (it_max > 0);
68416841

68426842
for (col = 0; col < it_max; col++)
68436843
{
@@ -6906,7 +6906,7 @@ DBL JuliaXPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIsec
69066906
mindist2 = a*a+b*b;
69076907

69086908
it_max = maxIterations;
6909-
POV_ASSERT(it_max > 0);
6909+
POV_PATTERN_ASSERT (it_max > 0);
69106910

69116911
binomial_coeff = &(gaBinomialCoefficients[(fractalExponent+1)*fractalExponent/2]);
69126912

@@ -7035,7 +7035,7 @@ DBL Magnet1MPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIs
70357035
mindist2 = 10000;
70367036

70377037
it_max = maxIterations;
7038-
POV_ASSERT(it_max > 0);
7038+
POV_PATTERN_ASSERT (it_max > 0);
70397039

70407040
for (col = 0; col < it_max; col++)
70417041
{
@@ -7112,7 +7112,7 @@ DBL Magnet1JPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIs
71127112
mindist2 = a2+b2;
71137113

71147114
it_max = maxIterations;
7115-
POV_ASSERT(it_max > 0);
7115+
POV_PATTERN_ASSERT (it_max > 0);
71167116

71177117
for (col = 0; col < it_max; col++)
71187118
{
@@ -7195,7 +7195,7 @@ DBL Magnet2MPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIs
71957195
c1c2i = (c1r+c2r)*y;
71967196

71977197
it_max = maxIterations;
7198-
POV_ASSERT(it_max > 0);
7198+
POV_PATTERN_ASSERT (it_max > 0);
71997199

72007200
for (col = 0; col < it_max; col++)
72017201
{
@@ -7277,7 +7277,7 @@ DBL Magnet2JPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIs
72777277
c1c2i = (c1r+c2r)*ci;
72787278

72797279
it_max = maxIterations;
7280-
POV_ASSERT(it_max > 0);
7280+
POV_PATTERN_ASSERT (it_max > 0);
72817281

72827282
for (col = 0; col < it_max; col++)
72837283
{
@@ -7356,7 +7356,7 @@ DBL Mandel2Pattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIse
73567356
mindist2 = a2+b2;
73577357

73587358
it_max = maxIterations;
7359-
POV_ASSERT(it_max > 0);
7359+
POV_PATTERN_ASSERT (it_max > 0);
73607360

73617361
for (col = 0; col < it_max; col++)
73627362
{
@@ -7423,7 +7423,7 @@ DBL Mandel3Pattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIse
74237423
mindist2 = a2+b2;
74247424

74257425
it_max = maxIterations;
7426-
POV_ASSERT(it_max > 0);
7426+
POV_PATTERN_ASSERT (it_max > 0);
74277427

74287428
for (col = 0; col < it_max; col++)
74297429
{
@@ -7490,7 +7490,7 @@ DBL Mandel4Pattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIse
74907490
mindist2 = a2+b2;
74917491

74927492
it_max = maxIterations;
7493-
POV_ASSERT(it_max > 0);
7493+
POV_PATTERN_ASSERT (it_max > 0);
74947494

74957495
for (col = 0; col < it_max; col++)
74967496
{
@@ -7558,7 +7558,7 @@ DBL MandelXPattern::EvaluateRaw(const Vector3d& EPoint, const Intersection *pIse
75587558
mindist2 = a*a+b*b;
75597559

75607560
it_max = maxIterations;
7561-
POV_ASSERT(it_max > 0);
7561+
POV_PATTERN_ASSERT (it_max > 0);
75627562

75637563
binomial_coeff = &(gaBinomialCoefficients[(fractalExponent+1)*fractalExponent/2]);
75647564

@@ -8787,7 +8787,7 @@ DBL FractalPattern::ExteriorColour(int iters, DBL a, DBL b) const
87878787
case 0:
87888788
return exteriorFactor;
87898789
case 1:
8790-
POV_ASSERT(maxIterations > 0);
8790+
POV_PATTERN_ASSERT (maxIterations > 0);
87918791
return (DBL)iters / (DBL)maxIterations;
87928792
case 2:
87938793
return a * exteriorFactor;

source/core/scene/object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ ObjectBase::~ObjectBase()
833833

834834
double ObjectBase::GetPotential (const Vector3d& p, bool subtractThreshold, TraceThreadData *threaddata) const
835835
{
836-
POV_ASSERT (false);
836+
POV_SHAPE_ASSERT (false);
837837
return 0.0;
838838
}
839839

source/core/shape/spheresweep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ int SphereSweep::Intersect_Segment(const BasicRay &ray, const SPHSWEEP_SEG *Segm
598598
break;
599599

600600
default:
601-
POV_ASSERT(false);
601+
POV_SHAPE_ASSERT(false);
602602
break;
603603
}
604604

0 commit comments

Comments
 (0)