#include <archon/x3d/server/geometry.H>
Inheritance diagram for Archon::X3D::Box:
Public Member Functions | |
const NodeType * | getType () const |
Box (BackRef< ExecutionContext > c) | |
const Vector3 & | getSize () const |
int | intersect (const Math::Ray3 &, double &dist) const |
void | getNormalAndTexCoord (Vector3 hitPoint, int where, const Shape *, Vector3 *hitNormal, Vector2 *hitTexCoord) const |
void | render (bool texture, const Shape *shape, const RenderConfig *) |
Static Public Member Functions | |
static Ref< NodeBase > | instantiate (BackRef< ExecutionContext > c) |
Static Public Attributes | |
static const NodeType * | type = 0 |
Friends | |
void | initializeGeometryComponent () |
The Box node specifies a rectangular parallelepiped box centred at the origin of the local coordinate system and aligned with the local coordinate axes. By default, the box measures 2 units in each dimension.
Textures are applied individually to each face of the box. On the front, back, right, and left faces of the box, when viewed from the outside with the positive Y-axis pointing upwards, the texture is mapped onto each face with the same orientation as if the image were displayed normally in 2D. On the top face of the box, when viewed from above and looking down the Y-axis toward the origin with the -Z-axis as the view up direction, the texture is mapped onto the face with the same orientation as if the image were displayed normally in 2D. On the bottom face of the box, when viewed from below looking up the Y-axis toward the origin with the +Z-axis as the view up direction, the texture is mapped onto the face with the same orientation as if the image were displayed normally in 2D.
Definition at line 197 of file geometry.H.