POV-Ray : Newsgroups : povray.general : Reading mesh2 data from file : Reading mesh2 data from file Server Time
30 May 2024 09:51:03 EDT (-0400)
  Reading mesh2 data from file  
From: Kima
Date: 3 Jul 2021 02:00:01
Message: <web.60dffc3036463e86e75ac487d427f3e5@news.povray.org>
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 {
   face_indices {

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

Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.