Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bpy_extras/mesh_utils.py
| Context not available. | |||||
| def mesh_linked_uv_islands(mesh): | def mesh_linked_uv_islands(mesh): | ||||
| """ | """ | ||||
| Splits the mesh into connected polygons, use this for seperating cubes from | Splits the mesh into connected polygons, use this for separating cubes from | ||||
| other mesh elements within 1 mesh datablock. | other mesh elements within 1 mesh datablock. | ||||
| :arg mesh: the mesh used to group with. | :arg mesh: the mesh used to group with. | ||||
| Context not available. | |||||
| def mesh_linked_tessfaces(mesh): | def mesh_linked_tessfaces(mesh): | ||||
| """ | """ | ||||
| Splits the mesh into connected faces, use this for seperating cubes from | Splits the mesh into connected faces, use this for separating cubes from | ||||
| other mesh elements within 1 mesh datablock. | other mesh elements within 1 mesh datablock. | ||||
| :arg mesh: the mesh used to group with. | :arg mesh: the mesh used to group with. | ||||
| Context not available. | |||||
| Edge loops defined by faces | Edge loops defined by faces | ||||
| Takes me.tessfaces or a list of faces and returns the edge loops | Takes me.tessfaces or a list of faces and returns the edge loops | ||||
| These edge loops are the edges that sit between quads, so they dont touch | These edge loops are the edges that sit between quads, so they don't touch | ||||
| 1 quad, note: not connected will make 2 edge loops, | 1 quad, note: not connected will make 2 edge loops, | ||||
| both only containing 2 edges. | both only containing 2 edges. | ||||
| Context not available. | |||||
| i = ed_adj.index(context_loop[-2]) | i = ed_adj.index(context_loop[-2]) | ||||
| context_loop.append(ed_adj[not i]) | context_loop.append(ed_adj[not i]) | ||||
| # Dont look at this again | # Don't look at this again | ||||
| del ed_adj[:] | del ed_adj[:] | ||||
| return edge_loops | return edge_loops | ||||
| Context not available. | |||||
| else: | else: | ||||
| """ | """ | ||||
| Seperate this loop into multiple loops be finding edges that are | Separate this loop into multiple loops be finding edges that are | ||||
| used twice. This is used by lightwave LWO files a lot | used twice. This is used by lightwave LWO files a lot | ||||
| """ | """ | ||||
| Context not available. | |||||