[Bf-blender-cvs] [3aa2dd7] master: OpenSubdiv: Correction to vert edge/face orientation code

Sergey Sharybin noreply at git.blender.org
Mon Aug 3 14:57:55 CEST 2015


Commit: 3aa2dd74b55829ed8930c338e2ab27787c0afc9d
Author: Sergey Sharybin
Date:   Mon Aug 3 14:26:31 2015 +0200
Branches: master
https://developer.blender.org/rB3aa2dd74b55829ed8930c338e2ab27787c0afc9d

OpenSubdiv: Correction to vert edge/face orientation code

non-manifold case didn't start ordering from the correct edge.

===================================================================

M	intern/opensubdiv/opensubdiv_converter.cc

===================================================================

diff --git a/intern/opensubdiv/opensubdiv_converter.cc b/intern/opensubdiv/opensubdiv_converter.cc
index c0fca86..74c02ec 100644
--- a/intern/opensubdiv/opensubdiv_converter.cc
+++ b/intern/opensubdiv/opensubdiv_converter.cc
@@ -235,8 +235,8 @@ inline bool TopologyRefinerFactory<OpenSubdiv_Converter>::assignComponentTopolog
 					bool start_found = false;
 					edge_start = vert_edges[i];
 					IndexArray edge_faces = getBaseEdgeFaces(refiner, edge_start);
-					for (int j = 0; j < edge_faces.size(); ++j) {
-						face_start = edge_faces[j];
+					if (edge_faces.size() == 1) {
+						face_start = edge_faces[0];
 						if (!face_used[face_start]) {
 							ConstIndexArray
 							    face_verts = getBaseFaceVertices(refiner, face_start),




More information about the Bf-blender-cvs mailing list