Example #1
0
def split_meshes_with_weight(meshes_and_weights, depth=0):
  soups = [(m.face_soup()[0], m.vertex_field(vertex_position_id)) for m,weight in meshes_and_weights]
  soup,X = merge_meshes(soups)
  weights = []
  for m,weight in meshes_and_weights:
    weights += [weight] * m.n_faces
  return meshify(*split_soup_with_weight(soup, X, weights, depth))
Example #2
0
def split_meshes_with_weight(meshes_and_weights, depth=0):
    soups = [(m.face_soup()[0], m.vertex_field(vertex_position_id))
             for m, weight in meshes_and_weights]
    soup, X = merge_meshes(soups)
    weights = []
    for m, weight in meshes_and_weights:
        weights += [weight] * m.n_faces
    return meshify(*split_soup_with_weight(soup, X, weights, depth))
Example #3
0
def split_meshes(meshes, depth=0):
  soups = [(m.face_soup()[0], m.vertex_field(vertex_position_id)) for m in meshes]
  return meshify(*split_soups(soups,depth))
Example #4
0
def split_mesh(mesh, depth=0):
  return meshify(*split_soup(mesh.face_soup()[0], mesh.vertex_field(vertex_position_id), depth))
Example #5
0
def split_mesh_with_weight(mesh, weights, depth=0):
  return meshify(*split_soup_with_weight(mesh.face_soup()[0], mesh.vertex_field(vertex_position_id), weights, depth))
Example #6
0
def split_meshes(meshes, depth=0):
    soups = [(m.face_soup()[0], m.vertex_field(vertex_position_id))
             for m in meshes]
    return meshify(*split_soups(soups, depth))
Example #7
0
def split_mesh(mesh, depth=0):
    return meshify(*split_soup(mesh.face_soup()[0],
                               mesh.vertex_field(vertex_position_id), depth))
Example #8
0
def split_mesh_with_weight(mesh, weights, depth=0):
    return meshify(
        *split_soup_with_weight(mesh.face_soup(
        )[0], mesh.vertex_field(vertex_position_id), weights, depth))