createTiledPlate

Syntax

createTiledPlate(FilePath:string, Orientation:integer, Size:length[2], Bifacial:boolean, TileSize:length[2][, Thickness:length]]) → string

The method createTiledPlate creates a plate which shows the picture or the texture loaded from a picture tiled.

Parameters

  • The parameter FilePath of data type string sets the path and the name of the file you want to import.

  • The parameter Orientation of data type integer sets the sets the orientation of the picture. 1 stands for Floor, 2 stands for Front Wall, and 3 stands for Side Wall.

  • The parameter Size is an array of data type length which sets the width and the height of the picture. If you enter a value less than or equal to 0 for one of the values for one of the two values, the respective other value is calculated from the width to height ratio.

  • The parameter Bifacial of data type boolean sets if the texture will be shown on both sides of the plate (true) or only on the top side of the plate (false).

  • The parameter TileSize is an array of data type length which sets the width/tile size X and the depth/tile size Y of a tile. If you enter a value less than or equal to 0 for one of the values for one of the two values, the respective other value is calculated from the width to height ratio.

  • The optional parameter Thickness of data type length designates the thickness of the plate.

Return Value

The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.

Example

var TiledPlate := _3D.getGraphic("deco").createTiledPlate("D:\Picture.png", 1, [4.0,2.0], true, [2.0, 2.0], 0.1)
TiledPlate.MaterialActive := true
TiledPlate.MaterialDiffuseColor := makeRGBValue(255,0,0)

Related Topics

Textured Plate

createPicture

_3D.getGraphic