To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.partsOpen lugnet.cad.dat.parts in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / 6430
6429  |  6431
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
POV dat for L3P v1.4 - 3626bpse - Minifig Head with SW Scout Trooper Black Visor Pattern - POV
Newsgroups: 
lugnet.cad.ray, lugnet.cad.dat.parts
Date: 
Tue, 11 Aug 2009 22:34:49 GMT
Viewed: 
1693 times
  
Ok, so now I've found out why my minifig head dats with inline POV no longer
work. New POV-Ray version was no problems this time. But two changes frm L3P 1.3
to 1.4 caused problems:
The names of the colors have been changed from Color[n*] to L3Color[n*], and
STUDS are now L3Studs.
In my planned new version of MFHead, I will have to make if-statements

How do I write if staterments in the POV code to make this correct?

L3Version < 1.4 should give:
#if (version >= 3.1) material #else texture #end { Color0 }
L3Version > 1.3 should give:
#if (version >= 3.1) material #else texture #end { L3Color0 }

and

L3Version < 1.4 should give:
#if (STUDS)
difference {
cylinder { <0,0,0>, <0,-4,0>, 6 }
cylinder { <0,0.01,0>, <0,-4.01,0>, 4 }
}
#end
L3Version > 1.3 should give:
#if (L3Studs)
difference {
cylinder { <0,0,0>, <0,-4,0>, 6 }
cylinder { <0,0.01,0>, <0,-4.01,0>, 4 }
}
#end
?

/Tore



0 Minifig Head with SW Scout Trooper Black Visor Pattern - POV
0 Name: 3626bpse.dat
0 Author: Andrew Westrate
0 Unofficial Part
0 // Inline POV code generated by MFHead v0.01
0 // Inline POV code edited to comply with L3P v 1.4 2009-08-11

0 CMDLINE -C14
0 KEYWORDS Star Wars, Episode 6, Empire, Speeder Bike, Scout Trooper, Endor
0 BFC CERTIFY CW

0 // 2004-04-15 AJW added torus primitives

0 // replacing s\3626bs01.dat
0 L3P IFNOTPOV

1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\3626bs02.dat
1 16 0 4 0 13 0 0 0 13 0 0 0 13 2-4cyli.dat
1 16 0 4 0 0 0 8 0 -6.4 0 8 0 0 t04o6250.dat
1 16 0 4 0 -8 0 0 0 -6.4 0 0 0 8 t04o6250.dat
1 16 0 17 0 0 0 -8 0 6.4 0 8 0 0 t04o6250.dat
1 16 0 17 0 8 0 0 0 6.4 0 0 0 8 t04o6250.dat

4 15 2.5 5 -12.5025 3 5 -12.403 4.975 7 -12.01 4.975 7.75 -12.01
4 15 4.975 7 -12.01 9.192 13 -9.192 9.192 14 -9.192 4.975 7.75 -12.01
4 15 4.975 6.25 -12.01 4.975 5.5 -12.01 9.192 11.5 -9.192 9.192 12.25 -9.192
4 0 0 14.75 -13 -2.75 14.75 -12.4528 -2.75 14.25 -12.4528 0 14.25 -13
4 0 0 14.25 -13 2.75 14.25 -12.4528 2.75 14.75 -12.4528 0 14.75 -13
4 0 0 15 -13 1 15 -12.801 1 15.5 -12.801 0 15.5 -13
4 0 -1 15 -12.801 0 15 -13 0 15.5 -13 -1 15.5 -12.801
4 0 1 11 -12.801 2.5 5 -12.5025 4.975 7.75 -12.01 4.975 15 -12.01
4 0 -1 4.25 -12.801 -1 11 -12.801 -4.975 15 -12.01 -4.975 4.25 -12.01
4 0 0 4.25 -13 0 11 -13 -1 11 -12.801 -1 4.25 -12.801
4 0 0 4.25 -13 2 4.25 -12.602 2.5 5 -12.5025 1 11 -12.801
3 0 0 11 -13 0 4.25 -13 1 11 -12.801
4 0 6 15.5 -11.325 4.975 15 -12.01 4.975 7.75 -12.01 8 15.5 -9.9886
4 0 9.192 15 -9.192 8 15.5 -9.9886 4.975 7.75 -12.01 9.192 14 -9.192
4 15 4.25 5 -12.1543 4.975 5.5 -12.01 4.975 6.25 -12.01 3.75 5 -12.2538
4 0 -7 4.5 -10.6568 -4.975 4.25 -12.01 -4.975 15 -12.01 -9.192 5.5 -9.192
4 0 -9.192 5.5 -9.192 -4.975 15 -12.01 -6 15.5 -11.325 -8 15.5 -9.9886
3 0 -9.192 5.5 -9.192 -8 15.5 -9.9886 -9.192 15 -9.192
4 16 -4.975 4.25 -12.01 -4.975 4 -12.01 0 4 -13 0 4.25 -13
4 16 0 4 -13 4.975 4 -12.01 4.975 4.25 -12.01 0 4.25 -13
4 16 0 11 -13 0 14.25 -13 -2.75 14.25 -12.4528 -1 11 -12.801
4 16 1 15 -12.801 0 15 -13 0 14.75 -13 2.75 14.75 -12.4528
4 16 0 15 -13 -1 15 -12.801 -2.75 14.75 -12.4528 0 14.75 -13
4 16 -2.75 14.75 -12.4528 -1 15 -12.801 -1 15.5 -12.801 -4.975 17 -12.01
4 16 1 15 -12.801 2.75 14.75 -12.4528 4.975 17 -12.01 1 15.5 -12.801
4 16 4.975 17 -12.01 0 17 -13 0 15.5 -13 1 15.5 -12.801
4 16 0 15.5 -13 0 17 -13 -4.975 17 -12.01 -1 15.5 -12.801
4 16 4.975 17 -12.01 2.75 14.75 -12.4528 2.75 14.25 -12.4528 4.975 15 -12.01
4 16 -2.75 14.25 -12.4528 -2.75 14.75 -12.4528 -4.975 17 -12.01 -4.975 15 -12.01
3 16 -1 11 -12.801 -2.75 14.25 -12.4528 -4.975 15 -12.01
3 16 4.975 15 -12.01 2.75 14.25 -12.4528 1 11 -12.801
4 0 3.75 5 -12.2538 4.975 6.25 -12.01 4.975 7 -12.01 3 5 -12.403
4 0 9.192 12.25 -9.192 9.192 13 -9.192 4.975 7 -12.01 4.975 6.25 -12.01
4 0 4.25 5 -12.1543 2.5 5 -12.5025 2 4.25 -12.602 4.975 4.25 -12.01
3 0 4.975 4.25 -12.01 4.975 5.5 -12.01 4.25 5 -12.1543
4 0 -9.75 14 -8.357 -9.75 7.5 -8.357 -9.192 5.5 -9.192 -9.192 15 -9.192
4 0 9.192 11.5 -9.192 4.975 5.5 -12.01 4.975 4.25 -12.01 9.192 5.5 -9.192
3 0 4.975 4.25 -12.01 7 4.5 -10.6568 9.192 5.5 -9.192
4 16 9.192 4 -9.192 7 4.5 -10.6568 4.975 4.25 -12.01 4.975 4 -12.01
4 16 9.192 17 -9.192 4.975 17 -12.01 6 15.5 -11.325 8 15.5 -9.9886
4 16 -6 15.5 -11.325 -4.975 17 -12.01 -9.192 17 -9.192 -8 15.5 -9.9886
4 16 -7 4.5 -10.6568 -9.192 4 -9.192 -4.975 4 -12.01 -4.975 4.25 -12.01
4 16 -12.01 4 -4.975 -9.192 4 -9.192 -9.192 5.5 -9.192 -9.75 7.5 -8.357
4 16 9.75 7.5 -8.357 9.192 5.5 -9.192 9.192 4 -9.192 12.01 4 -4.975
4 16 9.75 14 -8.357 9.75 7.5 -8.357 12.01 4 -4.975 12.01 17 -4.975
4 16 12.01 17 -4.975 9.192 17 -9.192 9.192 15 -9.192 9.75 14 -8.357
4 16 -9.75 14 -8.357 -9.192 15 -9.192 -9.192 17 -9.192 -12.01 17 -4.975
4 16 -9.75 7.5 -8.357 -9.75 14 -8.357 -12.01 17 -4.975 -12.01 4 -4.975
3 16 4.975 15 -12.01 6 15.5 -11.325 4.975 17 -12.01
3 16 8 15.5 -9.9886 9.192 15 -9.192 9.192 17 -9.192
3 16 7 4.5 -10.6568 9.192 4 -9.192 9.192 5.5 -9.192
3 16 -7 4.5 -10.6568 -9.192 5.5 -9.192 -9.192 4 -9.192
3 16 -9.192 15 -9.192 -8 15.5 -9.9886 -9.192 17 -9.192
3 16 -6 15.5 -11.325 -4.975 15 -12.01 -4.975 17 -12.01
4 16 0 14.25 -13 0 11 -13 1 11 -12.801 2.75 14.25 -12.4528
4 15 9.192 11.5 -9.192 9.5 12.25 -8.7311 9.5 13 -8.7311 9.192 12.25 -9.192
4 15 9.25 14.25 -9.1052 9.192 14 -9.192 9.192 13 -9.192 9.5 13.75 -8.7311
4 0 9.75 14 -8.357 9.192 15 -9.192 9.25 14.25 -9.1052 9.5 13.75 -8.7311
4 0 9.192 12.25 -9.192 9.5 13 -8.7311 9.5 13.75 -8.7311 9.192 13 -9.192
4 0 9.75 14 -8.357 9.5 13.75 -8.7311 9.5 12.25 -8.7311 9.75 7.5 -8.357
4 0 9.75 7.5 -8.357 9.5 12.25 -8.7311 9.192 11.5 -9.192 9.192 5.5 -9.192
3 0 9.192 14 -9.192 9.25 14.25 -9.1052 9.192 15 -9.192
0 Remaining quads and conditional lines
4 16 -13 4 0 -12.01 4 -4.975 -12.01 17 -4.975 -13 17 0
5 24 -12.0107 4 -4.9751 -12.0107 17 -4.9751 -13 4 0 -9.1923 4 -9.1923
5 24 -9.192 4 -9.192 -9.192 17 -9.192 -12.01 4 -4.975 -4.975 4 -12.01
5 24 -4.975 4 -12.01 -4.975 17 -12.01 -9.192 4 -9.192 0 4 -13
5 24 0 4 -13 0 17 -13 -4.975 4 -12.01 4.975 4 -12.01
5 24 4.975 4 -12.01 4.975 17 -12.01 0 4 -13 9.192 4 -9.192
5 24 9.192 4 -9.192 9.192 17 -9.192 4.975 4 -12.01 12.01 4 -4.975
5 24 12.01 4 -4.975 12.01 17 -4.975 9.192 4 -9.192 13 4 0
4 16 13 17 0 12.01 17 -4.975 12.01 4 -4.975 13 4 0
5 24 13 4 0 13 17 0 12.01 4 -4.975 12.01 4 4.975
0
1 16 0 4 0 0 0 -8 0 -6.4 0 -8 0 0 t04o6250.dat
1 16 0 4 0 8 0 0 0 -6.4 0 0 0 -8 t04o6250.dat
1 16 0 17 0 0 0 8 0 6.4 0 -8 0 0 t04o6250.dat
1 16 0 17 0 -8 0 0 0 6.4 0 0 0 -8 t04o6250.dat
0

0 L3P ELSEPOV

0   #if (L3Studs)
0     difference {
0     cylinder { <0,0,0>, <0,-4,0>, 6 }
0     cylinder { <0,0.01,0>, <0,-4.01,0>, 4 }
0     }
0 #end
0 object { ring3_dot_dat matrix <2,0,0,0,1,0,0,0,2,0,0,0> }
0 object { ring2_dot_dat matrix <2,0,0,0,1,0,0,0,2,0,4,0> }
0 object { _4_dash_4cyli_dot_dat matrix <6,0,0,0,20,0,0,0,6,0,4,0> }
0 object { ring3_dot_dat matrix <2,0,0,0,1,0,0,0,2,0,24,0> }
0 object { _4_dash_4cyli_dot_dat matrix <8,0,0,0,3,0,0,0,8,0,21,0> }
0
0 cylinder { <0,0,0>,<0,17,0>,13.001
0 clipped_by {
0   union {
0     prism {linear_sweep linear_spline 0,14,4
0     <2.5,5>,<3,5>,<4.975,7>,<4.975,7.75>}
0     prism {linear_sweep linear_spline 0,14,4
0     <4.975,7>,<9.192,13>,<9.192,14>,<4.975,7.75>}
0     prism {linear_sweep linear_spline 0,14,4
0     <4.975,6.25>,<4.975,5.5>,<9.192,11.5>,<9.192,12.25>}
0     prism {linear_sweep linear_spline 0,14,4
0     <4.25,5>,<4.975,5.5>,<4.975,6.25>,<3.75,5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.192,11.5>,<9.5,12.25>,<9.5,13>,<9.192,12.25>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.25,14.25>,<9.192,14>,<9.192,13>,<9.5,13.75>}
0   } rotate <-90,0,0>
0 }
0 #if (version >= 3.1) material #else texture #end { L3Color15 }
0 }
0 cylinder { <0,0,0>,<0,17,0>,13.001
0 clipped_by {
0   union {
0     prism {linear_sweep linear_spline 0,14,4
0     <0,14.75>,<-2.75,14.75>,<-2.75,14.25>,<0,14.25>}
0     prism {linear_sweep linear_spline 0,14,4
0     <0,14.25>,<2.75,14.25>,<2.75,14.75>,<0,14.75>}
0     prism {linear_sweep linear_spline 0,14,4
0     <0,15>,<1,15>,<1,15.5>,<0,15.5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <-1,15>,<0,15>,<0,15.5>,<-1,15.5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <1,11>,<2.5,5>,<4.975,7.75>,<4.975,15>}
0     prism {linear_sweep linear_spline 0,14,4
0     <-1,4.25>,<-1,11>,<-4.975,15>,<-4.975,4.25>}
0     prism {linear_sweep linear_spline 0,14,4
0     <0,4.25>,<0,11>,<-1,11>,<-1,4.25>}
0     prism {linear_sweep linear_spline 0,14,4
0     <0,4.25>,<2,4.25>,<2.5,5>,<1,11>}
0     prism {linear_sweep linear_spline 0,14,3
0     <0,11>,<0,4.25>,<1,11>}
0     prism {linear_sweep linear_spline 0,14,4
0     <6,15.5>,<4.975,15>,<4.975,7.75>,<8,15.5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.192,15>,<8,15.5>,<4.975,7.75>,<9.192,14>}
0     prism {linear_sweep linear_spline 0,14,4
0     <-7,4.5>,<-4.975,4.25>,<-4.975,15>,<-9.192,5.5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <-9.192,5.5>,<-4.975,15>,<-6,15.5>,<-8,15.5>}
0     prism {linear_sweep linear_spline 0,14,3
0     <-9.192,5.5>,<-8,15.5>,<-9.192,15>}
0     prism {linear_sweep linear_spline 0,14,4
0     <3.75,5>,<4.975,6.25>,<4.975,7>,<3,5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.192,12.25>,<9.192,13>,<4.975,7>,<4.975,6.25>}
0     prism {linear_sweep linear_spline 0,14,4
0     <4.25,5>,<2.5,5>,<2,4.25>,<4.975,4.25>}
0     prism {linear_sweep linear_spline 0,14,3
0     <4.975,4.25>,<4.975,5.5>,<4.25,5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <-9.75,14>,<-9.75,7.5>,<-9.192,5.5>,<-9.192,15>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.192,11.5>,<4.975,5.5>,<4.975,4.25>,<9.192,5.5>}
0     prism {linear_sweep linear_spline 0,14,3
0     <4.975,4.25>,<7,4.5>,<9.192,5.5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.75,14>,<9.192,15>,<9.25,14.25>,<9.5,13.75>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.192,12.25>,<9.5,13>,<9.5,13.75>,<9.192,13>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.75,14>,<9.5,13.75>,<9.5,12.25>,<9.75,7.5>}
0     prism {linear_sweep linear_spline 0,14,4
0     <9.75,7.5>,<9.5,12.25>,<9.192,11.5>,<9.192,5.5>}
0     prism {linear_sweep linear_spline 0,14,3
0     <9.192,14>,<9.25,14.25>,<9.192,15>}
0   } rotate <-90,0,0>
0 }
0 #if (version >= 3.1) material #else texture #end { L3Color0 }
0 }
0 torus{9,4 clipped_by{difference{box{<-13,4,-13>,<13,-4,13>}
0 cylinder{<0,0,0>,<0,4,0>,9} plane{y,0}}}translate <0,17,0>}
0 plane{y,21 clipped_by{difference{sphere{<0,21,0>,9} sphere{<0,21,0>,8}}}}
0
0 torus{9,4 clipped_by{difference{box{<-13,-4,-13>,<13,4,13>}
0 cylinder{<0,0,0>,<0,-4,0>,9} plane{-y,0}}}translate <0,4,0>}
0 plane{y,0 clipped_by{difference{sphere{<0,0,0>,9} sphere{<0,0,0>,8}}}}
0
0 cylinder{<0,4,0>,<0,17,0>,13}
0
0 L3P ENDPOV
0



Message has 1 Reply:
  Re: POV dat for L3P v1.4 - 3626bpse - Minifig Head with SW Scout Trooper Black Visor Pattern - POV
 
(...) Sorry for the late answer. L3P v1.4 has L3Version declared, v1.3 has not. #ifdef (L3Version) material { L3Color0 } #else #if (version >= 3.1) material #else texture #end { Color0 } #end (L3P v1.4 does not support PovRay < 3.1) For the studs I (...) (14 years ago, 14-Jan-10, to lugnet.cad.ray, lugnet.cad.dat.parts)

Message is in Reply To:
  POV dat - 3626bpse - Minifig Head with SW Scout Trooper Black Visor Pattern - POV  [DAT]
 
0 Minifig Head with SW Scout Trooper Black Visor Pattern - POV 0 Name: 3626bpse.dat 0 Author: Andrew Westrate 0 Unofficial Part 0 // Inline POV code generated by MFHead v0.01 0 CMDLINE -C14 0 KEYWORDS Star Wars, Episode 6, Empire, Speeder Bike, (...) (16 years ago, 22-Jan-08, to lugnet.cad.ray, lugnet.cad.dat.parts)

35 Messages in This Thread:





















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR