07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D: Controlling appearance<br />

Neighbor data<br />

Any given face may have 0 or more neighbors along a given edge. In the illustration below, the face ABC has two<br />

neighbors on the edge opposite vertex A, one neighbor on the edge opposite vertex B and no neighbors on the edge<br />

opposite vertex C.<br />

A manifold mesh may have three or more faces meeting at one edge<br />

You can obtain information about the neighboring faces of a given face using the neighbor property. You can use the<br />

following Lingo code to find out which face is the neighbor to face seven, opposite vertex 13. First, find where vertex<br />

13 appears in the list of vertices for face 7.<br />

put member("3D").model(1).meshDeform.mesh[1].face[7]<br />

-- [13, 14, 11]<br />

Now you know that 13 is vertex one in the face list for face seven, you can ask for the neighbor of vertex one:<br />

put member("3D").model(1).meshDeform.mesh[1].face[7].neighbor[1]<br />

-- [[1, 8, 2, 1]]<br />

Last updated 8/26/2011<br />

190

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!