Travis, I've spotted another thing I feel missing:
exported .pov files contain these lines at their beginning:
But edges can not be turned on and off this easy.
You declare a macro LDXEdges always in that case:
Note the missing #if around the last object instruction.
I would like to be able to easily turn on and off such edges the same way as the other switches above.
This can easily be achieved by changing the above snippet to:
which I would like much better.
However, that would break existing files which might rely on that the object variable currently is named LDXEdges.
So probably the ideal solution would be to keep the current name LDXEdges for the edges object,
and invent a new name for the boolean toggle.
In case that in LDView's export options edge export is turned off,
the code above should read:
exported .pov files contain these lines at their beginning:
Code:
#declare LDXQual = 3; // Quality (0 = Bounding Box; 1 = No Refraction; 2 = Normal; 3 = Stud Logos)
#declare LDXSW = 0.5; // Seam Width (0 for no seams)
#declare LDXStuds = 1; // Show studs? (1 = YES; 0 = NO)
#declare LDXRefls = 1; // Reflections? (1 = YES; 0 = NO)
#declare LDXShads = 1; // Shadows? (1 = YES; 0 = NO)
#declare LDXFloor = 1; // Include Floor? (1 = YES; 0 = NO)
You declare a macro LDXEdges always in that case:
Code:
#declare LDXEdges = union
{
EdgeLine(<-160,1,48>,<-155,0,48>,EdgeColor)
...
}
...
object { LDXEdges }
I would like to be able to easily turn on and off such edges the same way as the other switches above.
This can easily be achieved by changing the above snippet to:
Code:
#if (LDXEdges > 0)
#declare LDXEdgesObject = union
{
EdgeLine(<-160,1,48>,<-155,0,48>,EdgeColor)
...
}
#end
...
#if (LDXEdges > 0)
object { LDXEdgesObject }
#end
However, that would break existing files which might rely on that the object variable currently is named LDXEdges.
So probably the ideal solution would be to keep the current name LDXEdges for the edges object,
and invent a new name for the boolean toggle.
In case that in LDView's export options edge export is turned off,
the code above should read:
Code:
#if (LDXEdges > 0)
#ifndef LDXEdgesObject
#error "This file got exported from LDRAW without edges. Either define your own ones in object LDXEdgesObject, or re-export it from LDView with edges turned on."
#end
#end
...
#if (LDXEdges > 0)
object { LDXEdgesObject }
#end