[Bf-python] Re: Get faces from vertex (Roland Hess)

Tom Musgrove tommusgrove__ at hotmail.com
Sat Apr 3 21:34:45 CEST 2004


Hi harkyman,

I gave things a bit more thought and here are the functions and defintions I 
came up with

Use the simple 9 point flat mesh below for examples (it is a single square 
subdivided once, so no diagonal edges, all polys are 4 sided).

a b c
d e f
g h i

getSharedVertices(list=None)

a list of one or more vertices is entered, a list of vertices shared by all 
of the vertices is returned.

ie getSharedVertices(list= d,b) returns a,e
ie getSharedVertices(list = e) returns b,d,f,h

getSharedVerticesExclude(list=None, list=None)
As above, but with the option of excluding the return of certain points

ie getSharedVerticesExclude(list = d,b; list = a) returns e

getComplementaryVertices(Vertice = none)
Given a vertice, returns the shared vertices of its shared vertices

ie getComplementaryVertices(e) returns a,c,g,i

getFaceMembership(list = none)
a list of vertices is entered, and a list of faces of which all vertices 
listed share is returned.

ie getFaceMembership(list = e,f) returns bcef, efhi

getConnectedFacesSharedEdge(face = )
given a face returns the faces it shares edges with

ie getConnectedFacesSharedEdge(face = {abde}) returns bcef, degh

getConnectedFacesComplementaryFace(face = )
given a face returns the faces that it share a vertice with, but not an edge

ie getConnectedFacesComplementaryFace(face = abde) returns efhi

getAllConnectedFaces(face = )
given a face returns both the shared edge faces and the complementary faces

ie getAllConnectedFaces(face = abde) returns becf, efhi, degh

Tom M.
LetterRip

_________________________________________________________________
Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 
months! 
http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/




More information about the Bf-python mailing list