General Category > ASL Scripts

exporting vertice and edge data

(1/2) > >>

DeveloperX:
Hello.

I've been reading sample scripts and the language spec sheet, and I'm having difficulties locating the information that I'm looking for. Perhaps I'm overlooking it, but after 5 hours of looking and getting nowhere, I am turning to the community, as I guess someone here can help me out.

I want to export the vertex coordinates and the edge indices of the current object to a text file.

If anyone would be so kind as to point me in the right direction as to how to do this, I'd be very grateful.
Thanks.

Claude:
On the Scripts page of the site under Object Export Plug-Ins,
you'll find an obj exporter.Study it with the help of the spec.
It exports vertices,indices of the points making the face edges
and a lot more.You'll have to remove what you don't need.

DeveloperX:
Thanks for your quick reply.
I reread the obj exporter, and the spec.

None of the exported file types give me the data I need expcet for the saved an8 format.

My model has no faces, its only vertices and edges.

I know this sounds dumb, but the engine that I am working with is wireframe only.
Again I know this sounds like a stupid idea, but just bear with me on this.

If I export my model as obj I get only the vertices coordinates in the obj file.
When I save my model as an8 it shows the edge indices that I need.

I have been trying to write a routine to read the edge and vertex data from the an8, but I've had no luck with that.

Can someone tell me how to export the edge data from my anim8or mesh object model with ASL?

I cannot seem to find the right command.

Claude:
Now.I understand.
Problem is that ASL doesn't let you access orphan edge data at the moment.
You're  limited to edge part of faces.

If your mesh is closed.meaning that no edge end is unconnected,then
you could create faces in Anim8or.This would not change the way it looks
in wireframe view and it would allow you to export a list of vertex and
a list of index couple for the edges.Going thru the list of face,you could
mark the edges so you you don't double them.

If not,you'll have to continue working on your An8 file parser.


DeveloperX:
Aww....dangit!  :-\

I don't quite understand how to get the edge data from the face data, so I guess I'm stuck working on ripping the data from the an8.

Well, thanks for letting me know that ASL cannot do what I want yet.

Navigation

[0] Message Index

[#] Next page

Go to full version