table of contents
other sections
SoVertexProperty(3IV)() | SoVertexProperty(3IV)() |
NAME¶
SoVertexProperty — vertex property nodeINHERITS FROM¶
SoBase > SoFieldContainer > SoNode > SoVertexPropertySYNOPSIS¶
#include <Inventor/nodes/SoVertexProperty.h>enum Binding {
SoVertexProperty::OVERALL Whole object has same material/normal
SoVertexProperty::PER_PART One material/normal for each part of object
SoVertexProperty::PER_PART_INDEXED One material/normal for each part, indexed
SoVertexProperty::PER_FACE One material/normal for each face of object
SoVertexProperty::PER_FACE_INDEXED One material/normal for each face, indexed
SoVertexProperty::PER_VERTEX One material/normal for each vertex of object
SoVertexProperty::PER_VERTEX_INDEXED One material/normal for each vertex, indexed
}
Fields from class SoVertexProperty:
SoMFVec3f vertex
SoMFVec3f normal
SoMFUInt32 orderedRGBA
SoMFVec2f texCoord
SoSFEnum normalBinding
SoSFEnum materialBinding
Methods from class SoVertexProperty:
SoVertexProperty()
Methods from class SoNode:
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
static SoType getClassTypeId()
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName) const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
DESCRIPTION¶
This property node may be used to efficiently specify coordinates, normals, texture coordinates, colors, transparency values, material binding and normal binding for vertex-based shapes, i.e., shapes of class SoVertexShape. An SoVertexProperty node can be used as a child of a group node in a scene graph, in which case the properties it specifies are inherited by subsequent shape nodes in the graph. It can also be directly referenced as the VertexProperty SoSFField of a vertex-based shape, bypassing scene graph inheritance.FIELDS¶
SoMFVec3f vertex
vertex coordinate(s).
SoMFVec3f normal
normal vector(s).
SoMFUInt32 orderedRGBA
packed color(s), including transparencies.
SoMFVec2f texCoord
texture coordinate(s).
SoSFEnum normalBinding
normal binding.
SoSFEnum materialBinding
material binding.
METHODS¶
SoVertexProperty()
Creates an SoVertexProperty node with default settings.
ACTION BEHAVIOR¶
SoGLRenderAction, SoCallbackAction, SoPickActionWhen traversed in a scene graph, sets coordinates, normals, texture coordinates, diffuse colors, transparency, normal binding and material binding in current traversal state. If not traversed, has no effect on current traversal state associated with action. The normalBinding field has no effect if there are no normals. The materialBinding has no effect if there are no packed colors.
SoGetBoundingBoxAction
When traversed in a scene graph, sets coordinates in current traversal state. If not traversed, has no effect on current traversal state associated with action.
FILE FORMAT/DEFAULTS¶
VertexProperty {
vertex [ ] normal [ ] texCoord [ ] orderedRGBA [ ] materialBinding OVERALL normalBinding PER_VERTEX_INDEXED
}