@@ -34,7 +34,7 @@ NvEdgeInfo* NvStripifier::FindEdgeInfo(NvEdgeInfoVec& edgeInfos, int v0, int v1)
3434 }
3535 else
3636 {
37- assert (infoIter->m_v1 == v0);
37+ R_ASSERT (infoIter->m_v1 == v0);
3838 if (infoIter->m_v0 == v1)
3939 return infoIter;
4040 else
@@ -53,7 +53,7 @@ NvEdgeInfo* NvStripifier::FindEdgeInfo(NvEdgeInfoVec& edgeInfos, int v0, int v1)
5353NvFaceInfo* NvStripifier::FindOtherFace (NvEdgeInfoVec& edgeInfos, int v0, int v1, NvFaceInfo* faceInfo)
5454{
5555 NvEdgeInfo* edgeInfo = FindEdgeInfo (edgeInfos, v0, v1);
56- assert (edgeInfo != NULL );
56+ R_ASSERT (edgeInfo != NULL );
5757 return (edgeInfo->m_face0 == faceInfo ? edgeInfo->m_face1 : edgeInfo->m_face0 );
5858}
5959
@@ -315,7 +315,7 @@ int NvStripifier::GetSharedVertex(NvFaceInfo* faceA, NvFaceInfo* faceB)
315315IC int NvStripifier::GetNextIndex (const WordVec& indices, NvFaceInfo* face)
316316{
317317 int numIndices = indices.size ();
318- assert (numIndices >= 2 );
318+ R_ASSERT (numIndices >= 2 );
319319
320320 int v0 = indices[numIndices - 2 ];
321321 int v1 = indices[numIndices - 1 ];
@@ -376,15 +376,15 @@ IC bool NvStripInfo::IsMarked(NvFaceInfo* faceInfo)
376376//
377377IC void NvStripInfo::MarkTriangle (NvFaceInfo* faceInfo)
378378{
379- assert (!IsMarked (faceInfo));
379+ R_ASSERT (!IsMarked (faceInfo));
380380 if (IsExperiment ())
381381 {
382382 faceInfo->m_experimentId = m_experimentId;
383383 faceInfo->m_testStripId = m_stripId;
384384 }
385385 else
386386 {
387- assert (faceInfo->m_stripId == -1 );
387+ R_ASSERT (faceInfo->m_stripId == -1 );
388388 faceInfo->m_experimentId = -1 ;
389389 faceInfo->m_stripId = m_stripId;
390390 }
@@ -743,11 +743,11 @@ bool NvStripifier::IsCW(NvFaceInfo* faceInfo, int v0, int v1)
743743void NvStripifier::CreateStrips (
744744 const NvStripInfoVec& allStrips, IntVec& stripIndices, const bool bStitchStrips, unsigned int & numSeparateStrips)
745745{
746- assert (numSeparateStrips == 0 );
746+ R_ASSERT (numSeparateStrips == 0 );
747747
748748 NvFaceInfo tLastFace (0 , 0 , 0 );
749749 int nStripCount = allStrips.size ();
750- assert (nStripCount > 0 );
750+ R_ASSERT (nStripCount > 0 );
751751
752752 // we infer the cw/ccw ordering depending on the number of indices
753753 // this is screwed up by the fact that we insert -1s to denote changing strips
@@ -758,7 +758,7 @@ void NvStripifier::CreateStrips(
758758 {
759759 NvStripInfo* strip = allStrips[i];
760760 int nStripFaceCount = strip->m_faces .size ();
761- assert (nStripFaceCount > 0 );
761+ R_ASSERT (nStripFaceCount > 0 );
762762
763763 // Handle the first face in the strip
764764 {
@@ -1228,7 +1228,7 @@ void NvStripifier::FindAllStrips(
12281228 resetPoints.insert (nextFace);
12291229
12301230 // otherwise, we shall now try experiments for starting on the 01,12, and 20 edges
1231- assert (nextFace->m_stripId < 0 );
1231+ R_ASSERT (nextFace->m_stripId < 0 );
12321232
12331233 // build the strip off of this face's 0-1 edge
12341234 NvEdgeInfo* edge01 = FindEdgeInfo (allEdgeInfos, nextFace->m_v0 , nextFace->m_v1 );
0 commit comments