Skip to content

Commit bbad099

Browse files
committed
Removed face start edge sanitation
1 parent 028714e commit bbad099

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

‎kernels/common/scene_subdiv_mesh.cpp‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ namespace embree
531531
{
532532
for (size_t f=r.begin(); f<r.end(); f++)
533533
{
534-
/* Skip faces with zero vertices. */
534+
/* Skip faces with zero vertices. */
535535
if (mesh->faceVertices[f] == 0) {
536536
continue;
537537
}
@@ -706,15 +706,6 @@ namespace embree
706706
{
707707
numHalfEdges = parallel_prefix_sum(faceVertices,faceStartEdge,numFaces(),0,std::plus<unsigned>());
708708

709-
/* Corner case: If the last faces have zero edges, start edge index will be invalid.
710-
Set it to the last valid half edge index. */
711-
if (numFaces() && faceVertices[numFaces()-1] == 0) {
712-
/* Walk back through the faces until we find one with non-zero edges */
713-
for (size_t i = numFaces() - 1; i > 0 && faceVertices[i] == 0; i--) {
714-
faceStartEdge[i] = numHalfEdges - 1;
715-
}
716-
}
717-
718709
/* calculate face of each half edge */
719710
halfEdgeFace.resize(numHalfEdges);
720711
for (size_t f=0, h=0; f<numFaces(); f++)

0 commit comments

Comments
 (0)