public class SoMaterialBinding extends SoNode
The bindings for faces and vertices are meaningful only for shapes that are made from faces and vertices. Similarly, the indexed bindings are only used by the shapes that allow indexing.
The bindings apply only to diffuse colors and transparency. Other materials (emissive, specular, ambient, shininess) will have the first value applied to the entire shape, regardless of the material binding or the number provided.
If the number of transparencies is less than the number of diffuse colors, only the first transparency value will be used, regardless of the material binding. If the number of diffuse colors in the state is less than the number required for the given binding, a debug warning will be printed and unpredictable colors will result.
File format/default:
MaterialBinding {
value | OVERALL |
Action behavior:
SoGLRenderAction
, SoCallbackAction
Sets the current material binding type. Sets: SoMaterialBindingElement
See also:
SoMaterial
, SoNormalBinding
, SoShape
, SoVertexProperty
, SoTextureCoordinateBinding
Modifier and Type | Class and Description |
---|---|
static class |
SoMaterialBinding.Bindings |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
OVERALL
Deprecated.
Use
SoMaterialBinding.Bindings.OVERALL instead. |
static int |
PER_FACE
Deprecated.
Use
SoMaterialBinding.Bindings.PER_FACE instead. |
static int |
PER_FACE_INDEXED
Deprecated.
Use
SoMaterialBinding.Bindings.PER_FACE_INDEXED instead. |
static int |
PER_PART
Deprecated.
Use
SoMaterialBinding.Bindings.PER_PART instead. |
static int |
PER_PART_INDEXED
Deprecated.
Use
SoMaterialBinding.Bindings.PER_PART_INDEXED instead. |
static int |
PER_VERTEX
Deprecated.
Use
SoMaterialBinding.Bindings.PER_VERTEX instead. |
static int |
PER_VERTEX_INDEXED
Deprecated.
Use
SoMaterialBinding.Bindings.PER_VERTEX_INDEXED instead. |
SoSFEnum<SoMaterialBinding.Bindings> |
value
Specifies how to bind materials to shapes.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMaterialBinding()
Creates a material binding node with default settings.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int OVERALL
SoMaterialBinding.Bindings.OVERALL
instead.@Deprecated public static final int PER_PART
SoMaterialBinding.Bindings.PER_PART
instead.@Deprecated public static final int PER_PART_INDEXED
SoMaterialBinding.Bindings.PER_PART_INDEXED
instead.@Deprecated public static final int PER_FACE
SoMaterialBinding.Bindings.PER_FACE
instead.@Deprecated public static final int PER_FACE_INDEXED
SoMaterialBinding.Bindings.PER_FACE_INDEXED
instead.@Deprecated public static final int PER_VERTEX
SoMaterialBinding.Bindings.PER_VERTEX
instead.@Deprecated public static final int PER_VERTEX_INDEXED
SoMaterialBinding.Bindings.PER_VERTEX_INDEXED
instead.public final SoSFEnum<SoMaterialBinding.Bindings> value
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com