Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 4
0
def split_mesh(mesh, depth=0):
  return meshify(*split_soup(mesh.face_soup()[0], mesh.vertex_field(vertex_position_id), depth))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 7
0
def split_mesh(mesh, depth=0):
    return meshify(*split_soup(mesh.face_soup()[0],
                               mesh.vertex_field(vertex_position_id), depth))
Ejemplo n.º 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))