POV-Ray : Newsgroups : povray.unix : VIM syntax highlighting and .inc files : Re: VIM syntax highlighting and .inc files Server Time
28 Jul 2024 18:19:04 EDT (-0400)
  Re: VIM syntax highlighting and .inc files  
From: Ron Parker
Date: 28 Nov 2001 16:32:00
Message: <slrna0alui.q0h.ron.parker@fwi.com>
On Wed, 28 Nov 2001 16:01:51 -0500, Mark M. Wilson wrote:
> OK, then my next (stupid) question is (you can tell I haven't read that
> section of the manual lately):
> when making the include statements, if the .pov file (which used to be
> the .inc file) is not in the same dir. as all the other .inc files which
> come with POVRay, do I explicitly state the path like so:
> #include ~/ceiling.pov  
> 
> or had I better move the ceiling.pov file to /usr/share/povray where all
> the other stuff is?

You can add stuff to the include path by putting something like

library_path=/home/ron/pov-dist/include

in your ~/.povrayrc file.  Then the #include will just work.

Also, I think you'll find that POV's #include statement doesn't understand
shell shortcuts like ~.

-- 
#macro R(P)z+_(P)_(P)_(P+1)_(P+1)+z#end#macro Q(C,T)bicubic_patch{type 1u_steps
6v_steps 6R(1)R(3)R(5)R(7)pigment{rgb z}}#end#macro _(Y)#local X=asc(substr(C,Y
,1))-65;<T+mod(X,4)div(X,4)9>-2#end#macro O(T)Q("ABEFUQWS",T)Q("WSXTLOJN",T)#
end O(0)O(3)Q("JNKLCGCD",0)light_source{x 1}// ron### [at] povrayorg


Post a reply to this message

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