Class Object3DBranch
Extends
BranchGroup3D.
Defined in: Object3DBranch.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Object3DBranch(item, home, userPreferences)
Root of a 3D branch that matches a home object.
|
| Method Attributes | Method Name and Description |
|---|---|
|
getHome()
Returns home instance or
null. |
|
|
Returns user preferences.
|
|
|
updateTextureTransform(appearance, texture, scaled)
Updates the texture transformation of an appearance.
|
|
|
updateTextureTransformFittingArea(appearance, texture, areaPoints, invertY)
Updates the texture transformation of an appearance to fit the surface matching
areaPoints. |
Class Detail
Object3DBranch(item, home, userPreferences)
Root of a 3D branch that matches a home object.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {Object} item Optional
- {Home} home Optional
- {UserPreferences} userPreferences Optional
Method Detail
{Home}
getHome()
Returns home instance or
null.
- Returns:
- {Home}
{UserPreferences}
getUserPreferences()
Returns user preferences.
- Returns:
- {UserPreferences}
updateTextureTransform(appearance, texture, scaled)
Updates the texture transformation of an appearance.
and scaled if required.
- Parameters:
- {Appearance3D} appearance
- {HomeTexture} texture
- {boolean} scaled Optional
updateTextureTransformFittingArea(appearance, texture, areaPoints, invertY)
Updates the texture transformation of an appearance to fit the surface matching
areaPoints.
- Parameters:
- {Appearance3D} appearance
- {HomeTexture} texture
- {Array} areaPoints
- {boolean} invertY
