Edge lines in POV output reportedly generate an invalid POV file
Opened this issue · 1 comments
tcobbs commented
Describe the bug
According to Steffen, exporting edge lines to POV generates a syntax error in the POV:
https://forums.ldraw.org/thread-28148-post-53424.html#pid53424
MinnieTheMoocher commented
Hi Travis, here is a small demo for the problem:
test.ldr
is a small LDRAW scene, export it with LDView 4.5 with edges and cond edges export to POVRay enabled- result is the
test.pov
file containing the syntax error - I corrected the file by hand, the result is
test_corrected.pov
The 4 manual corrections which I did are as follows:
- removed stray
#end
line (syntax error) - wrapped the declaration of
LDXEdges
by#if (LDXSkipEdges = 0) ... #end
because it otherwise takes HUGE parsing time in real-world scenes (which are MUCH larger than test.ldr) - wrapped the declaration of
LDXConditionalEdges
by#if (LDXSkipEdges = 0) ... #end
because it otherwise takes HUGE parsing time in real-world scenes (which are MUCH larger than test.ldr) - corrected the #if logic:
#if (LDXSkipEdges = 0)
object { LDXEdges }
object { LDXConditionalEdges }
#end
I'd like to suggest to takeover these into LDView.