igl.compute_frame_field_bisectors(V, F, X1, X2, BIS1, BIS2) # Comb the field, implicitly defining the seams igl.comb_cross_field(V, F, BIS1, BIS2, BIS1_combed, BIS2_combed) # Find the integer mismatches igl.cross_field_missmatch(V, F, BIS1_combed, BIS2_combed, True, MMatch) # Find the singularities igl.find_cross_field_singularities(V, F, MMatch, isSingularity, singularityIndex) # Cut the mesh, duplicating all vertices on the seams igl.cut_mesh_from_singularities(V, F, MMatch, Seams) # Comb the frame-field accordingly igl.comb_frame_field(V, F, X1, X2, BIS1_combed, BIS2_combed, X1_combed, X2_combed) # Global parametrization igl.comiso.miq(V, F, X1_combed, X2_combed, MMatch, isSingularity, Seams, UV, FUV, gradient_size, stiffness, direct_round, iterations, 5, True, True) # Global parametrization (with seams, only for demonstration) igl.comiso.miq(V, F, X1_combed, X2_combed, MMatch, isSingularity, Seams, UV_seams, FUV_seams, gradient_size, stiffness, direct_round, iterations, 5, False) # Plot the mesh viewer = igl.glfw.Viewer() # Replace the standard texture with an integer shift invariant texture (texture_R, texture_G, texture_B) = line_texture()
igl.compute_frame_field_bisectors(V, F, X1, X2, BIS1, BIS2) # Comb the field, implicitly defining the seams igl.comb_cross_field(V, F, BIS1, BIS2, BIS1_combed, BIS2_combed) # Find the integer mismatches igl.cross_field_missmatch(V, F, BIS1_combed, BIS2_combed, True, MMatch) # Find the singularities igl.find_cross_field_singularities(V, F, MMatch, isSingularity, singularityIndex) # Cut the mesh, duplicating all vertices on the seams igl.cut_mesh_from_singularities(V, F, MMatch, Seams) # Comb the frame-field accordingly igl.comb_frame_field(V, F, X1, X2, BIS1_combed, BIS2_combed, X1_combed, X2_combed) # Global parametrization igl.comiso.miq(V, F, X1_combed, X2_combed, MMatch, isSingularity, Seams, UV, FUV, gradient_size, stiffness, direct_round, iterations, 5, True, True) # Global parametrization (with seams, only for demonstration) igl.comiso.miq(V, F, X1_combed, X2_combed, MMatch, isSingularity, Seams, UV_seams, FUV_seams, gradient_size, stiffness, direct_round, iterations, 5, False) # Plot the mesh viewer = igl.viewer.Viewer() # Replace the standard texture with an integer shift invariant texture (texture_R, texture_G, texture_B) = line_texture()