Cone shape node. More...
#include <Inventor/VRMLnodes/SoVRMLCone.h>
Classes | |
struct | MTstruct |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLCone () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFFloat | bottomRadius |
SoSFFloat | height |
SoSFBool | side |
SoSFBool | bottom |
SoSFBool | solid |
See the VRML97 Specification, below.
NOTE: This class does not exist in Open Inventor 10.0 and later.OpenGL vertex arrays are used if they are available and if the environment variable IV_NO_VERTEX_ARRAY is not set.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at http://www.web3d.org .
The SoVRMLCone node specifies a cone which is centered in the local coordinate system and whose central axis is aligned with the local Y-axis. The bottonRadius field specifies the radius of the cone's base, and the height field specifies the height of the cone from the center of the base to the apex. By default, the cone has a radius of 1.0 at the bottom and a height of 2.0, with its apex at y=1 and its bottom at y=-1. Both bottomRadius and height must be greater than 0.0.
The side field specifies whether sides of the cone are created, and the bottom field specifies whether the bottom cap of the cone is created. A value of TRUE specifies that this part of the cone exists, while a value of FALSE specifies that this part does not exist (not rendered). Parts with field values of FALSE are not collided with during collision detection.
When a texture is applied to the sides of the cone, the texture wraps counterclockwise (from above) starting at the back of the cone. The texture has a vertical seam at the back in the YZ plane, from the apex (0, height/2, 0) to the point (0, 0, -r). For the bottom cap, a circle is cut out of the unit texture square centered at (0, -height/2, 0) with dimensions (2 * bottomRadius) by (2 * bottomRadius) . The bottom cap texture appears right side up when the top of the cone is rotated towards the -Z axis. SoVRMLTextureTransform affects the texture coordinates of the SoVRMLCone.
The SoVRMLCone geometry is considered to be solid and thus requires outside faces only. When viewed from the inside the results are undefined.
bottomRadius | 1 |
height | 2 |
side | TRUE |
bottom | TRUE |
solid | TRUE |
metadata | NULL |
SoSFNode | set_metadata |
SoSFNode | metadata_changed |
SoVRMLCone::SoVRMLCone | ( | ) |
Constructor.
static SoType SoVRMLCone::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLGeometry.
virtual SoType SoVRMLCone::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLGeometry.
Specifies whether the bottom cap of the cone is created.
Specifies the radius of the base circle; value must be greater than 0.0.
Specifies the cone's height; value must be greater than 0.0.
Specifies whether the sides of the cone are created.
Determines whether the cone is visible when viewed from the inside. NOTE: field available since Open Inventor 5.0
NOTE 2: This field is not compatible with VRML97. If you specify a non-default value for this field, when this node is written to a VRML file, the file will contain this incompatible field and standard VRML97 file readers will not be able to read it.