SubSlopeOvertureStructure Class
The structure for a subslope overture (dormer, velux... ).
Constructor
SubSlopeOvertureStructure
()
Item Index
Methods
Properties
Methods
add
-
propertyName
-
value
Returns:
deserialize
-
hybrid
Parameters:
-
hybrid
ObjectJSON describing the object, built with the method serialize.
Returns:
The Structure object built from the deserialization
getAbsolutePosition
()
Object
Returns the absolute position of this subslope overture.
Returns:
A nested object whose fields are :
position
Absolute position (BABYLON.Vector2)vector
Always null.
getAvailableProperties
()
Array
Obtient les propriétés de l'objet.
Returns:
Un tableau contenant les différentes propriétés de l'objet.
getElementByName
-
name
-
collection
Parameters:
Returns:
getFloor
-
collection
Parameters:
-
collection
StringCollection to search within.
Returns:
The floor containing this structure, -1 if the object has not been added to any floor collection.
getMaterial
-
[name]
Gets the current materials.
Parameters:
-
[name]
String optionalIf this parameter is provided, only the material of the mesh of this name will be returned.
Returns:
The material(s). A nested object is returned if no name
parameter has been specified.
getParent
()
Returns the parent of this subslopeOverture.
initialize
()
private
isTargeted
()
Boolean
Tests if the given vector is inside the polygon of the subslope overture.
Returns:
True if the vector lies inside the polygon.
remove
()
Removes the subslope overture from the subslope.
serialize
()
Object
Returns:
setMaterial
-
material
-
name
Sets the material on a specific mesh of the subslope overture.
Parameters:
-
material
BABYLON.MaterialThe new Material.
-
name
StringThe name of the mesh you want to change the material of.
setParent
-
subslope
Sets the parent of the subslope overture.
Parameters:
-
subslope
SubSlopeStructureThe new parent subslope.
to3D
()
private
????
update
()
updateReferences
-
structure
Parameters:
-
structure
wnp.StructureFloor Structure to work with
Properties
polygon
BABYLON.Vector2
The 2D polygon vertices of the subslopeOverture. The length of this array is always 4 at all times.
position
BABYLON.Vector2
Position of the subslopeOverture.