POV-Ray : Newsgroups : povray.general : spline problem : spline problem Server Time
7 Aug 2024 13:22:31 EDT (-0400)
  spline problem  
From: Tom Melly
Date: 11 Sep 2001 04:59:11
Message: <3b9dd25f$1@news.povray.org>
The following scene gives me what looks like a coincident-surface problem when
using quadratic_spline. It's okay with other spline types. Problem apparent in
3.1, 3.5 and megapov. Tested under 95 and 2000.

Am I doing something stupid?

#version 3.5;

global_settings {
  assumed_gamma 1.0
  max_trace_level 15
}

camera {
  location  <0.0, 2, -5.0>
  look_at   <0.0, 2,  0.0>
}

light_source {
  <-30, 30, -30>
  color rgb <1, 1, 1>
}

lathe {
  quadratic_spline
  9
  <0.00, -0.5>,
  <0.40, 0.00>,
  <0.55, 0.10>,
  <0.55, 1.00>,
  <0.55, 1.85>,
  <0.35, 2.15>,
  <0.25, 2.40>,
  <0.25, 2.65>,
  <0.25, 3.00>
  pigment{rgb <1,1,0>}
}


--
#macro G(D,E,F)#local I=array[3]{D,E,F}#local B=0;triangle{#while(
B<3)#while(I[B])A[mod(I[B],10)]+#local I[B]=div(I[B],10);#end<-5,-
2,9>#local B=B+1;#end}#end #local A=array[7]{x,x*2,x*4,y,y*2,y*4,z
}light_source{-x*6-z*9,1}mesh{G(105,10,146)G(105,246,10)G(105,56,
146)G(105,1256,246)G(1256,126,220)G(22156,2216,201)pigment{rgb 1}}//TM


Post a reply to this message

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