POV-Ray : Newsgroups : povray.advanced-users : Outputting the outlines of a scene : Re: Outputting the outlines of a scene Server Time
4 Jul 2022 02:06:40 EDT (-0400)
  Re: Outputting the outlines of a scene  
From: Mike Horvath
Date: 16 Feb 2020 22:16:53
Message: <5e4a05a5@news.povray.org>
I have a scene that is made up of dozens of nested objects. Here is the 
top-most layer:

//// Model datsville_master.ldr
#ifndef (datsville__master_dot_ldr)
#declare datsville__master_dot_ldr = union {
// Datsville
// Name: datsville.ldr
// Author: John VanZwieten, Michael Horvath, Tore Eriksson
// !LICENSE Redistributable under CC BY-SA version 3.0 : see 
https://creativecommons.org/licenses/by-sa/3.0/
// Unofficial Datsville Model
// ROTATION CENTER 0 0 0 1 "Custom"
// ROTATION CONFIG 0 0
	// 1 16  0 0 0  1 0 0  0 1 0  0 0 1 layer_blocks_base.ldr
	object { layer__blocks__base_dot_ldr matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
	// 1 16  0 0 0  1 0 0  0 1 0  0 0 1 layer_streets_base.ldr
	object { layer__streets__base_dot_ldr matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
	// 1 16  0 0 0  1 0 0  0 1 0  0 0 1 layer_river.ldr
	object { layer__river_dot_ldr matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
	// 1 16  0 0 0  1 0 0  0 1 0  0 0 1 layer_blocks_overlay.ldr
	object { layer__blocks__overlay_dot_ldr matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
	// 1 16  0 0 0  1 0 0  0 1 0  0 0 1 layer_streets_overlay.ldr
	object { layer__streets__overlay_dot_ldr matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
	// 1 16  0 0 0  1 0 0  0 1 0  0 0 1 layer_traffic.ldr
	object { layer__traffic_dot_ldr matrix <1,0,0,0,1,0,0,0,1,0,0,0> }
// 16 0 0 0 1 0 0 0 1 0 0 0 1 layer_terrain.ldr
}
#end // ifndef (datsville__master_dot_ldr)


Is there any way in POV-Ray to "walk" down the tree and get the name of 
every one of these objects? I'm guessing there is not since I've not 
heard of anyone ever doing this.

Thank you.


Michael


Post a reply to this message

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