POV-Ray : Newsgroups : povray.newusers : Non-touching objects seem to be touching : Re: Non-touching objects seem to be touching Server Time
6 Jul 2022 00:12:50 EDT (-0400)
  Re: Non-touching objects seem to be touching  
From: Alain
Date: 10 Feb 2017 18:52:52
Message: <589e5254$1@news.povray.org>
Le 17-02-10 à 14:55, Stephen a écrit :
> On 2/10/2017 6:00 PM, Bald Eagle wrote:
>> #declare Sleeve =
>> difference {
>>   cylinder {< -0.0052500000, 0.0000000000, 0.0000000000 >, <
>> 0.0052500000,
>> 0.0000000000, 0.0000000000 >, 0.0015000000*1.001}
>>    cylinder {< -0.0052500000, 0.0000000000, 0.0000000000 >, <
>> 0.0052500000,
>> 0.0000000000, 0.0000000000 >, 0.0015000000}
>>   texture {pigment {color Red transmit 0.99}}
>>   no_shadow
>> }
>>
>>   object {Sleeve}
>>
>> But I had no idea the scale was an actual factor / cause of the
>> problem.  It
>> just seemed an oddly small scale to work on, with awkward values.;)
>
>
> It looks like computer generated code. So Nicki is probably working with
> the figures the machine spits out.
>
> BTW Welcome Nicki.
>

When you have all those trailing zeros, it's a sign that it is computer 
generated.
My guess is that the scene dimentions is in the milimeter scale, with 
base unit defined as meter.
Using a base unit of 1 cm would be beter,  and 1 mm would probably be 
optimal. Also, there is nothing to prevent you from using 0.01 mm as a 
base unit. That way, all values, but one, becomes integers.


Post a reply to this message

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