API Docs for: 2.7.3
Show:

MaterialInfo Class

Module: Component
Parent Module: Wanaplan

Material information for wall panes

Constructor

MaterialInfo

(
  • material
)

Parameters:

  • material BABYLON.Material

    material of the wall pane

Methods

deserialize

(
  • hybrid
)
Object

Deserializes the object (from JSON).

Parameters:

  • hybrid Object

    JSON describing the object, built with the method serialize.

Returns:

Object:

The Structure object built from the deserialization.

Deserialize

(
  • hybrid
)
Object static

Deserializes the object (from JSON).

Parameters:

  • hybrid Object

    JSON describing the object, built with the method serialize.

Returns:

Object:

The Structure object built from the deserialization.

identifyWithPanes

(
  • panes
)
Number

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:

Returns:

Number:

The index in the list pointing to the most alike wallpane.

MakeFromPane

(
  • pane
  • material
)
MaterialInfo static

Creates a material info from a wall pane and a material.

Parameters:

  • pane WallPane3D

    The wall pane.

  • material BABYLON.Material

    The material.

Returns:

MaterialInfo:

The resulting material info.

mergeParams

(
  • Un
  • Un
)
Object

Provided by the Core module.

Réalise une fusion de paramètres entre 2 objets.

Parameters:

  • Un Object

    objet avec des propriétés.

  • Un Object

    objet autre avec des propriétés.

Returns:

Object:

params Un objet comportant toutes les propriétés des 2 objets passés en paramètre.

serialize

() Object

Serializes the object (to JSON).

Returns:

Object:

The serialization result, null if nothing is serialized.

static repeatTexture

(
  • texture
  • x
  • y
)

Provided by the Core module.

Active la répétition de texture sur une texture.

Parameters:

  • texture THREE.Texture

    La texture à utiliser.

  • x Number

    Le facteur X de répétion à utiliser.

  • y Number

    Le facteur Y de répétion à utiliser.

Properties

boundingBox

BABYLON.boundingBox private

The bounding box of the wall.

center

BABYLON.Vector2

Center of the wall.

customData

Object private

Custom data of the wall.

material

BABYLON.Material

Material of the wall.

normal

BABYLON.Vector2

Normal to the wall.