Archon::X3D::Box Struct Reference

Server side representation of the equally named X3D node type. More...

#include <archon/x3d/server/geometry.H>

Inheritance diagram for Archon::X3D::Box:

Inheritance graph
[legend]
Collaboration diagram for Archon::X3D::Box:

Collaboration graph
[legend]
List of all members.

Public Member Functions

const NodeTypegetType () const
 Box (BackRef< ExecutionContext > c)
const Vector3getSize () 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< NodeBaseinstantiate (BackRef< ExecutionContext > c)

Static Public Attributes

static const NodeTypetype = 0

Friends

void initializeGeometryComponent ()

Detailed Description

Server side representation of the equally named X3D node type.

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.


The documentation for this struct was generated from the following files:
Generated on Sun Jul 30 22:59:22 2006 for Archon by  doxygen 1.4.4