[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: [x3d-public] Size of live Box



Braden McDaniel wrote:
Alan Hudson wrote:

George Anastassakis wrote:

More generally, how is it possible to get the dimensions of geometric primitive nodes such as Boxes, Spheres, Cones, etc., since all the respective fields (size, radius, height, etc) are initializeOnly?

in general you can't. InitializeOnly fields are not readable. A browser can throw those values away after the file is loaded.

You can wrap them in a proto to make them readable.

PROTO MySphere [
   inputOutput SFVec3f radius 2
] {
   Sphere {
      radius IS radius
   }
}

MySphere {
   radius 4
}


No you can't. From 4.4.4.3, "An inputOutput field in the prototype interface may be associated only with an inputOutput field in the prototype definition...."


hmmm, good point.

The proto would have to do its own interal routing without using IS. I know several browsers are letting this through though. Likely needs to be tested in the conformance suite.



--
Alan Hudson

President Yumetech, Inc.                               www.yumetech.com
President Web3D Consortium                             www.web3d.org
206 340 8900
-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html