This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > December 2003 > don't show anyline
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
don't show anyline
|
|
|
| #VRML V2.0 utf8
Hello, i don't understand why the program below don't show anything on
screen, any idea?
Thanks
#
# PROGRAMME test.
# ===============
#
#
NavigationInfo {type "EXAMINE"}
Shape {
appearance Appearance{ material Material {}}
geometry IndexedFaceSet {
coord DEF A Coordinate {
point [
2.5 1.5 0.0
2.0 2.0 0.0
]
}
coordIndex [
0 ,1 , -1
]}}
| |
| Herbert Stocker 2003-12-31, 2:30 pm |
|
Riri wrote:quote:
> #VRML V2.0 utf8
> Hello, i don't understand why the program below don't show anything on
> screen, any idea?
>
Bringing BS Contact VRML into "Verbose VRML warnings" mode
shows the following error message:
|
| IndexedFaceSet: face has only 2 vertices at list position 2
| number of coordinates 2
|
And this hints to the line
quote:
> coordIndex [
> 0 ,1 , -1
> ]}}
, which means that there is a face that begins
at vertice 0 and goes to vertice 1.
This is not a triangle, because it contains only two
points.
Add another line to the list in the Coordinate
node and replace 0 ,1 , -1 by 0 ,1, 2, -1
Happy new Year to all,
Herbert
quote:
> Thanks
>
> #
> # PROGRAMME test.
> # ===============
> #
> #
> NavigationInfo {type "EXAMINE"}
> Shape {
> appearance Appearance{ material Material {}}
> geometry IndexedFaceSet {
> coord DEF A Coordinate {
> point [
> 2.5 1.5 0.0
> 2.0 2.0 0.0
> ]
> }
> coordIndex [
> 0 ,1 , -1
> ]}}
>
>
--
Herbert Stocker (aka hersto)
http://www.hersto.de
www.bitmanagement.de
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|