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
}