recognising shapes from an IndexedFaceSet 
Author Message
 recognising shapes from an IndexedFaceSet

Weve got a question about recognising shapes from an IndexedFaceSet.
Were building a 3D dynamic map in VRML. The map is built by one
IndexedFaceSet. The coordinates, colour and coordIndex are all filled by
a script. We defined one touchsensor for the whole map.
We want to link ids (MFString) to the colour of the shapes. For example
red = stone and the green colour = sand. When touched on any red
shape, the string stone has to be shown.

Are there any ideas how to get recognised (colours of the) shapes (or by
compare the eventIn of the hitpoint by the coordinates of the IFS) from
the indexedFaceSet and link them to the ids?

We attached a file with the principles of our structure. One IFS defines
a red and green shape and the white one has to be filled with the colour
of the one is touched. At the same time the id-string has to appear.

Can anybody help us? At this moment thanks!

Marnix and Marco

1K Download

Sat, 12 Oct 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Object3D.Shape - ways to access/control multiple shapes?

2. explicit-shape vs. assumed-shape

3. Interface matching question -- explicit shape vs assumed shape

4. CFP: How Teams Shape Objects, How Objects Shape Teams - OOPLSA

5. recognising the delimiter and in awk

6. Edit in Place - problem recognising Window level events

7. Recognising Windows 2000

8. Recognising Windows/ME

9. Recognising tail recursion

10. Recognising QUOTE deemed harmful to EVAL's laziness

11. Solution to READ statement not recognising end of line

12. READ statement not recognising end of line??


Powered by phpBB® Forum Software