Import Edges as Faces?

Import Edges as Faces?

Anonymous
Not applicable
264 Views
0 Replies
Message 1 of 1

Import Edges as Faces?

Anonymous
Not applicable
fseek f 13348 #seek_set

for vertcounter = 1 to 60 do
(
vx = readBEfloat f
vy = readBEfloat f
vz = readBEfloat f
fas = readBEfloat f
append vertarray
)

fseek f 9532 #seek_set

for edgecounter = 1 to 158 do
(
sv = readBElong f
ev = readBElong f
fedge = readBElong f
redge = readBElong f
lsurf = readBElong f
rsurf = readBElong f
append edgearray
)

msh = mesh vertices:vertarray faces:facearray


This works for importing vertices, and If I set facearray to facearray in the edge loop it imports the edges as faces if viewed in wireframe.

Does anyone know how I can make faces from the edge array? fedge is the edge is next for a face every face is a triangle.

So the first face would be:
edge 0: sv = 0 ev = 1 and fedge = 1
edge 1: sv = 1 ev = 2 and fedge = 2
edge 2: sv = 2 ev = 3 and fedge = 0

3 loops in the edge counter.
0 Likes
265 Views
0 Replies
Replies (0)