POV-Ray : Newsgroups : povray.advanced-users : Outline Objects Server Time
28 Jul 2024 16:23:15 EDT (-0400)
  Outline Objects (Message 1 to 1 of 1)  
From: Guy Hill
Subject: Outline Objects
Date: 6 Jul 2004 12:54:29
Message: <40ead945$1@news.povray.org>
Can anyone help me outline an object, i'm wondering if there's a straight
forward way to do this. I've found this macro in another posting, but can't
get it to work?
thanks in advance



++++++++++++++++++++++++++++++++++++++++++++++++++++++
#macro Pigment_Outline( Object , Outside , Outline, Inside , Z , N , B , W )
#local F1=function{pigment{proximity{Object,1 samples N sample_bailout B
max_density W*0.51 type 1 method 3 sides 2}}}
#local F2=function{pigment{object{Object color 0 color 1}}}
#local F3=function{if(F1(x,y,z)-(W/2),if(F2(x,y,z)-0.5,1,0),0.5)} pigment{
function{ F3(x,y,Z) } color_map {[0 Outside][0.5 Outline][1 Inside]} }
#end

++++++++++++++++++++++++++++++++++++++++++++++++++++++


Post a reply to this message

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