Class Index | File Index

Classes


Class Object3DBranch


Extends BranchGroup3D.

Defined in: Object3DBranch.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Object3DBranch(item, home, userPreferences)
Root of a 3D branch that matches a home object.
Method Summary
Method Attributes Method Name and Description
 
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.
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

© Copyright 2024 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Thu Apr 04 2024 17:30:26 GMT+0200 (CEST)