MaterialInfo Class
Material information for wall panes
Constructor
MaterialInfo
-
material
Parameters:
-
material
BABYLON.Materialmaterial of the wall pane
Item Index
Methods
Properties
Methods
deserialize
-
hybrid
Deserializes the object (from JSON).
Parameters:
-
hybrid
ObjectJSON describing the object, built with the method serialize.
Returns:
The Structure object built from the deserialization.
Deserialize
-
hybrid
Deserializes the object (from JSON).
Parameters:
-
hybrid
ObjectJSON describing the object, built with the method serialize.
Returns:
The Structure object built from the deserialization.
identifyWithPanes
-
panes
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:
-
panes
WallPane3D[]The list of panes to compare with.
Returns:
The index in the list pointing to the most alike wallpane.
MakeFromPane
-
pane
-
material
Creates a material info from a wall pane and a material.
Parameters:
-
pane
WallPane3DThe wall pane.
-
material
BABYLON.MaterialThe material.
Returns:
The resulting material info.
mergeParams
-
Un
-
Un
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.
Properties
boundingBox
BABYLON.boundingBox
private
The bounding box of the wall.
center
BABYLON.Vector2
Center of the wall.
material
BABYLON.Material
Material of the wall.
normal
BABYLON.Vector2
Normal to the wall.