Fix intersection crash by making sure we do nothing when top limit is below bottom limit

This commit is contained in:
Jon Jenssen
2022-06-01 17:59:54 +02:00
committed by Magne Sjaastad
parent fd7821a10b
commit 89773da26e
3 changed files with 19 additions and 2 deletions

View File

@@ -343,6 +343,18 @@ double RimExtrudedCurveIntersection::upperFilterDepth( double sceneRadius ) cons
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimIntersectionFilterEnum RimExtrudedCurveIntersection::depthFilterType() const
{
if ( m_depthThresholdOverridden )
{
return m_collectionDepthFilterType();
}
return m_depthFilterType();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -78,8 +78,9 @@ public:
QString name() const override;
void setName( const QString& newName );
double upperFilterDepth( double sceneRadius ) const;
double lowerFilterDepth( double sceneRadius ) const;
double upperFilterDepth( double sceneRadius ) const;
double lowerFilterDepth( double sceneRadius ) const;
RimIntersectionFilterEnum depthFilterType() const;
void setDepthOverride( bool collectionOverride );
void setDepthOverrideParameters( double upperThreshold, double lowerThreshold, RimIntersectionFilterEnum filterType );