The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to access vrworld nodes
Replies: 1   Last Post: Mar 28, 2013 5:26 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Jan Houska

Posts: 385
Registered: 12/7/04
Re: How to access vrworld nodes
Posted: Mar 28, 2013 5:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


novel wrote:
> Hi All,
> I created and opened a vrworld object from a wrl file using this code
> vh=vrworld('F0.wrl');
> open(vh);
> I have could also display the wrl content with the view command:
> view(vh)
> Then I could figure out how to access the nodes of the wrl nodes such
> as Transform and its children (
> I tried with get, but it returns an empty object

>>> x=get(vh,'Nodes')
> x = vrnode object: 0-by-0
> I wonder if anyone could help. The wrl model is a textured triangular
> mesh mode. My goal is to retrieve the texture as it is mapped to the
> triangular mesh.

To access nodes of a virtual world, these nodes must be named. So, in
your WRL file, you must have "DEF SomeName Transform" instead of just
"Transform". After you have the relevant nodes named, you access them by
their name:


Good Luck, Jan

Jan Houska HUMUSOFT s.r.o. Pobrezni 20 186 00 Praha 8
tel: ++ 420 284 011 730 Czech Republic
fax: ++ 420 284 011 740

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.