[Bf-python] RE: efficient way to remove faces and edges from a mesh with python?

Justin MacArthur Jnuvares at hotmail.com
Wed Mar 24 20:47:46 CET 2004


Wouldn't it just be easier to rebuild a secondary mesh with the same
vertex locations then delete all the faces and edges?

This got a 90 by 90 sphere (verts: 7758 faces: 7878) done in absolutely
no time, I just had to delete the original mesh if I wanted to

Code:

import Blender
from Blender import Object, NMesh

Mesh1 = Object.GetSelected() [0]

Mesh2dat = NMesh.New()

for i in Mesh1.data.verts:
	Mesh2dat.verts.append(i)

NMesh.PutRaw(Mesh2dat)


I included the .py file for those who want it
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Deleteface.py
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040324/f353d3af/attachment.ksh>


More information about the Bf-python mailing list