WanaPlan

API Docs for: 2.7.0
Show:

MaterialInfo

Module: Component
Parent Module: Wanaplan

Summary

Material information for wall panes

Constructor

MaterialInfo

Syntax

MaterialInfo

(
  • material
)

Summary

Parameters:

  • material BABYLON.Material

    material of the wall pane

Methods

deserialize

Syntax

deserialize

(
  • hybrid
)
Object

Summary

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

Syntax

Deserialize

(
  • hybrid
)
Object static

Summary

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

Syntax

identifyWithPanes

(
  • panes
)
Number

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:

Returns:

Number:

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

MakeFromPane

Syntax

MakeFromPane

(
  • pane
  • material
)
MaterialInfo static

Summary

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

Provided by the Core module.

Syntax

mergeParams

(
  • Un
  • Un
)
Object

Summary

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

Syntax

serialize

() Object

Summary

Serializes the object (to JSON).

Returns:

Object:

The serialization result, null if nothing is serialized.

static repeatTexture

Provided by the Core module.

Syntax

static repeatTexture

(
  • texture
  • x
  • y
)

Summary

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

Syntax

boundingBox

BABYLON.boundingBox private

Summary

The bounding box of the wall.

center

Syntax

center

BABYLON.Vector2

Summary

Center of the wall.

customData

Syntax

customData

Object private

Summary

Custom data of the wall.

material

Syntax

material

BABYLON.Material

Summary

Material of the wall.

normal

Syntax

normal

BABYLON.Vector2

Summary

Normal to the wall.