MaterialInfo
Summary
Material information for wall panes
Constructor
MaterialInfo
Syntax
MaterialInfo
-
material
Summary
Parameters:
-
materialBABYLON.Materialmaterial of the wall pane
Item Index
Methods
Properties
Methods
deserialize
Syntax
Summary
Deserializes the object (from JSON).
Parameters:
-
hybridObjectJSON describing the object, built with the method serialize.
Returns:
The Structure object built from the deserialization.
Deserialize
Syntax
Summary
Deserializes the object (from JSON).
Parameters:
-
hybridObjectJSON describing the object, built with the method serialize.
Returns:
The Structure object built from the deserialization.
identifyWithPanes
Syntax
Summary
Identifies the material info with a set of wallpanes. Returns the pane the more similar with the material info, comparing the center and normal.
Parameters:
-
panesWallPane3D[]The list of panes to compare with.
Returns:
The index in the list pointing to the most alike wallpane.
MakeFromPane
Syntax
Summary
Creates a material info from a wall pane and a material.
Parameters:
-
paneWallPane3DThe wall pane.
-
materialBABYLON.MaterialThe material.
Returns:
The resulting material info.
mergeParams
Syntax
Summary
Réalise une fusion de paramètres entre 2 objets.
Returns:
params Un objet comportant toutes les propriétés des 2 objets passés en paramètre.
serialize
Syntax
Summary
Serializes the object (to JSON).
Returns:
The serialization result, null if nothing is serialized.
Properties
boundingBox
Syntax
boundingBox
BABYLON.boundingBox
private
Summary
The bounding box of the wall.
center
Syntax
center
BABYLON.Vector2
Summary
Center of the wall.
material
Syntax
material
BABYLON.Material
Summary
Material of the wall.
normal
Syntax
normal
BABYLON.Vector2
Summary
Normal to the wall.