POV-Ray : Newsgroups : povray.newusers : parse error: degenerate cone/cylinder Server Time
1 Nov 2024 04:14:10 EDT (-0400)
  parse error: degenerate cone/cylinder (Message 1 to 7 of 7)  
From: Marco
Subject: parse error: degenerate cone/cylinder
Date: 9 Sep 2010 14:30:01
Message: <web.4c89267ea4358e646731f09e0@news.povray.org>
Hi, I'm really stumped about this error

    cone
    {
        <0,1,0>, 4, <0,1,0>, 0
        //Texture {Polished_Chrome}
    }

the yellow line highlights the closing accolade, after //ing the texture line
(the error first appeared on that line)

    I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.

    (Using povray 3.6 for Windows)


Post a reply to this message

From: Jim Holsenback
Subject: Re: parse error: degenerate cone/cylinder
Date: 9 Sep 2010 16:17:30
Message: <4c8940da$1@news.povray.org>
On 09/09/2010 03:25 PM, Marco wrote:
> Hi, I'm really stumped about this error
> 
>     cone
>     {
>         <0,1,0>, 4, <0,1,0>, 0
>         //Texture {Polished_Chrome}
>     }
> 
> the yellow line highlights the closing accolade, after //ing the texture line
> (the error first appeared on that line)
> 
>     I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.
> 
>     (Using povray 3.6 for Windows)
> 
> 
check your y-coordinate


Post a reply to this message

From: Jim Holsenback
Subject: Re: parse error: degenerate cone/cylinder
Date: 9 Sep 2010 16:19:37
Message: <4c894159$1@news.povray.org>
On 09/09/2010 05:17 PM, Jim Holsenback wrote:
> On 09/09/2010 03:25 PM, Marco wrote:
>> Hi, I'm really stumped about this error
>>
>>     cone
>>     {
>>         <0,1,0>, 4, <0,1,0>, 0
>>         //Texture {Polished_Chrome}
>>     }
>>
>> the yellow line highlights the closing accolade, after //ing the texture line
>> (the error first appeared on that line)
>>
>>     I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.
>>
>>     (Using povray 3.6 for Windows)
>>
>>
> check your y-coordinate

ha-ha ... for that matter the whole sha-bang ... start and end points
cannot be the same!


Post a reply to this message

From: Reactor
Subject: Re: parse error: degenerate cone/cylinder
Date: 9 Sep 2010 16:40:00
Message: <web.4c8945ce47710ab76a99b6f80@news.povray.org>
"Marco" <rpo### [at] gmailcom> wrote:
> Hi, I'm really stumped about this error
>
>     cone
>     {
>         <0,1,0>, 4, <0,1,0>, 0
>         //Texture {Polished_Chrome}
>     }
>
> the yellow line highlights the closing accolade, after //ing the texture line
> (the error first appeared on that line)
>
>     I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.
>
>     (Using povray 3.6 for Windows)


Povray is likewise stumped.  The base and the apex are the same point, which
raises some interesting questions:  In what direction is your cone pointing?  Is
it a cone if it has a height of zero?  Povray doesn't know, so it is asking you.

If you did want something like a cone with zero length, then you could use the
disc object.

    HTH
  -Reactor


Post a reply to this message

From: Larry Hudson
Subject: Re: parse error: degenerate cone/cylinder
Date: 10 Sep 2010 23:47:41
Message: <4c8afbdd$1@news.povray.org>
On 09/09/2010 11:25 AM, Marco wrote:
> Hi, I'm really stumped about this error
>
>      cone
>      {
>          <0,1,0>, 4,<0,1,0>, 0
>          //Texture {Polished_Chrome}
>      }
>
> the yellow line highlights the closing accolade, after //ing the texture line
> (the error first appeared on that line)
>
>      I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.
>
>      (Using povray 3.6 for Windows)
>
>
Everybody overlooking the obvious?  How about texture instead of Texture...

(And of course, I'm ignoring the fact that the two ends of the cone are the same, as
has already 
been pointed out.)

      -=- Larry -=-


Post a reply to this message

From: Alain
Subject: Re: parse error: degenerate cone/cylinder
Date: 11 Sep 2010 17:00:05
Message: <4c8bedd5$1@news.povray.org>

> Hi, I'm really stumped about this error
>
>      cone
>      {
>          <0,1,0>, 4,<0,1,0>, 0
>          //Texture {Polished_Chrome}
>      }
>
> the yellow line highlights the closing accolade, after //ing the texture line
> (the error first appeared on that line)
>
>      I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.
>
>      (Using povray 3.6 for Windows)
>
>

The error message is about a "degenerate" cone or cylinder.
That means that both ends are at the same location. In that case, it 
becomes impossible to know the orientation of the end surfaces.

Also, "Texture" is a user variable while "texture" is a reserved 
keyword. It Texture have not been created in a #declare or #local, you 
get an error for an undeclared variable.

What you must do is to make sure that the end positions are different.
If you realy want a zero length cone or cylinder, you should use the 
disk object:

disk{<0,1,0>, Orientation, 4 [,Hole_Radius]texture{Polished_Chrome}}
"Orientation" is the direction of a line prependicular to the disk's 
surface.


Alain


Post a reply to this message

From: Marco
Subject: Re: parse error: degenerate cone/cylinder
Date: 16 Sep 2010 14:55:01
Message: <web.4c92678047710ab76731f09e0@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:

> > Hi, I'm really stumped about this error
> >
> >      cone
> >      {
> >          <0,1,0>, 4,<0,1,0>, 0
> >          //Texture {Polished_Chrome}
> >      }
> >
> > the yellow line highlights the closing accolade, after //ing the texture line
> > (the error first appeared on that line)
> >
> >      I've swapped the radii of the 2 caps (swapped the 4 and 0), to no avail.
> >
> >      (Using povray 3.6 for Windows)
> >
> >
>
> The error message is about a "degenerate" cone or cylinder.
> That means that both ends are at the same location. In that case, it
> becomes impossible to know the orientation of the end surfaces.
>
> Also, "Texture" is a user variable while "texture" is a reserved
> keyword. It Texture have not been created in a #declare or #local, you
> get an error for an undeclared variable.
>
> What you must do is to make sure that the end positions are different.
> If you realy want a zero length cone or cylinder, you should use the
> disk object:
>
> disk{<0,1,0>, Orientation, 4 [,Hole_Radius]texture{Polished_Chrome}}
> "Orientation" is the direction of a line prependicular to the disk's
> surface.
>
>
> Alain

Boy do I feel dumb about the 0-length cone! Thankd for being so kind to point it
out politely, everyone!


Post a reply to this message

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