POV-Ray : Newsgroups : povray.general : mesh2 syntax query : mesh2 syntax query Server Time
29 Jul 2024 00:33:03 EDT (-0400)
  mesh2 syntax query  
From: David Given
Date: 7 Dec 2013 08:26:01
Message: <52a321e9$1@news.povray.org>
I have a really frustrating issue. I have a tool that emits mesh2
objects with embedded texture indices.

vertex_vectors {
	4,
	<...>
	...
}
face_indices {
	4,	
	<...>, 0, 1, 2
	...
}

This is then being loaded by a Povray file:

object {
	mesh2 {
		#include "thing.inc"
	}
	translate <...>
}

I want the texture list to be in the Povray file, not in the machine
generated include file, because it's source code. But the syntax appears
to be insisting that the texture_list clause goes *between* the
vertex_vectors and face_indices clause. In order to emit it there, my
tool needs to know stuff about the structure of the Povray file that it
really shouldn't know.

I've tried defining the texture list with #declare, but that doesn't
work because texture_list isn't an rvalue and can't be assigned to a
variable.

Is there any wrinkle of syntax that will allow me to get the texture
list out of the include file?

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom


Post a reply to this message

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