|
|
Since a mesh is made of thousands or millions of triangles, it is tidy to keep
the data in separate files and include them in the .pov file whenever necessary.
I mean something like
#declare Vertices = read from vertices.txt;
#declare Faces = read from faces.txt;
mesh2 {
vertex_vectors {
N_vertices,
Vertices
}
face_indices {
N_faces,
Faces
}
}
fopen directive of POV-Ray reads the file into variables,
#read (FILE_HANDLE_IDENTIFIER,MyString,MyFloat,MyVect)
I don't know if it works as vertices and faces are thousands/millions of
vectors.
Post a reply to this message
|
|