Pipe generator: Added some asserts.

p4#: 20624
This commit is contained in:
Jacob Støren 2013-02-26 11:49:28 +01:00
parent deae7520b9
commit 39ac12f2f3

View File

@ -83,6 +83,7 @@ void RivPipeGeometryGenerator::setBendScalingFactor(double scaleFactor)
//--------------------------------------------------------------------------------------------------
void RivPipeGeometryGenerator::setRadius(double radius)
{
CVF_ASSERT(0 <= radius && radius < 1e100);
m_radius = radius;
clearComputedData();
@ -93,6 +94,7 @@ void RivPipeGeometryGenerator::setRadius(double radius)
//--------------------------------------------------------------------------------------------------
void RivPipeGeometryGenerator::setCrossSectionVertexCount(size_t nodeCount)
{
CVF_ASSERT( 2 < nodeCount && nodeCount < 1000000);
m_crossSectionNodeCount = nodeCount;
clearComputedData();