|
|
Attached you'll find mesh22obj.py A python script to convert POV-Ray's
mesh2 to *.obj files.
Consider it software in alpha state. A lot of things can be improved.
Currently it just looks at vertex_vectors, norma_vectors, uv_vectors and
face_indices. The rest of the mesh2 object is ignored.
It is assumed that the "triangles" in the mesh2 object are written
counter clockwise. If they are not, normals may get inverted (this
actually happens with the output of my mesh_macros, something to fix)
USE:
mesh22obj.py [options] filename(s)
OPTIONS:
-h, --help : shows this message and quits mesh22obj.py
-n : ignores all normals
-u : ignores all uv_data
Goodluck,
Ingo
Post a reply to this message
Attachments:
Download 'mesh22obj.py.txt' (9 KB)
|
|
|
|
Thanks Ingo
Looks very useful
Mick
"ingo" <ing### [at] tagpovrayorg> wrote in message
news:Xns94F5A773245Aseed7@news.povray.org...
> Attached you'll find mesh22obj.py A python script to convert POV-Ray's
> mesh2 to *.obj files.
>
> Consider it software in alpha state. A lot of things can be improved.
>
> Currently it just looks at vertex_vectors, norma_vectors, uv_vectors and
> face_indices. The rest of the mesh2 object is ignored.
>
> It is assumed that the "triangles" in the mesh2 object are written
> counter clockwise. If they are not, normals may get inverted (this
> actually happens with the output of my mesh_macros, something to fix)
>
> USE:
> mesh22obj.py [options] filename(s)
> OPTIONS:
> -h, --help : shows this message and quits mesh22obj.py
> -n : ignores all normals
> -u : ignores all uv_data
>
> Goodluck,
>
> Ingo
>
>
Post a reply to this message
|
|