General Category > ASL Scripts

exporting vertice and edge data

<< < (2/2)

Claude:
Getting the edge data from the face data shouldn't be that difficult.

With this function
int GetFacePointIndex(int faceIndex, int vtxIndex);
you can get the vertex index of all the points of the face.
An edge is defined by 2 points.
The first and second index define the first edge.Second and third define
the second.You go on like this up to the last edge defined by the last
and first vertex.

Make sense?

Steve:
Yes, there is a GetNumPoints() call and a GetPoint() call which allow you to enumerate all of the points, but there is no GetNumEdges() or GetEdge() call.  I have a batch of these and other functions that were missed in the original ASL release almost ready to make available.

The GetEdge() call is (will be) done with GetEdgeIndex0(int edgeIndex) and GetEdgeIndex1(int edgeIndex) to get the point number and GetEdgePoint0/1() to return the value of the vertex because GetEdgeIndex() is already defined to return the edge within a face.

With luck the next v0.97 preview will be ready in a week or so.  Without luck it will be a week or so into May because I'll be out of town.

DeveloperX:
Steve: Awesome! I'll just wait it out then. I'm in no rush, and this parser is kicking my behind :P
I'm close, but still no cigar. I toyed with the ASL options available, and I just could not find a way to pull the data I wanted from it. So, yeah I'm just going to wait for the next release that will (or should) have the functionality I need.

Also, in case you don't remember me, I've been a user of anim8or since the first release that you posted, and I've loved it ever since. :)

DeveloperX:
Well, I got an idea to get the data; and guess what? It worked!

So, my parser is working perfectly, I wrote the parser/converter in java in about 2 hours.

I'm so happy about this. Now I can make my models in anim8or and use them in my engine without any problems (that I can forsee..haven't tried converting anything complicated, just a 6 sided cube model)
I think it should be fine though, nothing is hardcoded that should break it.

I still can't wait for the latest and greatest installment of anim8or. :D

Navigation

[0] Message Index

[*] Previous page

Go to full version