Reference Source

References

summary
public

F convert2xkt(params: Object, stats: Object): Promise<number>

Converts model files into xeokit's native XKT format.

Supported source formats are: IFC, CityJSON, glTF, LAZ and LAS.

Only bundled in xeokit-convert.cjs.js.

Usage

const convert2xkt = require("@xeokit/xeokit-convert/dist/convert2xkt.cjs.js");
const fs = require('fs');

convert2xkt({
     sourceData: fs.readFileSync("rme_advanced_sample_project.ifc"),
     outputXKT: (xtkArrayBuffer) => {
         fs.writeFileSync("rme_advanced_sample_project.ifc.xkt", xtkArrayBuffer);
     }
 }).then(() => {
     console.log("Converted.");
 }, (errMsg) => {
     console.error("Conversion failed: " + errMsg)
 });
public

V XKT_INFO: {"xktVersion": number}

Provides info on the XKT generated by xeokit-convert.

public

Texture wrapping mode in which the last pixel of the texture stretches to the edge of the mesh.

public

Media type for GIF images.

public

Media type for JPEG images.

public

Texture magnification and minification filter that returns the weighted average of the four nearest texels to the given sample coordinates.

public

Texture minification filter that chooses two mipmaps that most closely match the size of the pixel being textured, finds within each mipmap the weighted average of the nearest texel to the center of the pixel, then returns the weighted average of those two values.

public

Texture minification filter that chooses the mipmap that most closely matches the size of the pixel being textured and returns the weighted average of the four nearest texels to the given sample coordinates.

public

Texture minification filter that chooses two mipmaps that most closely match the size of the pixel being textured, finds within each mipmap the weighted average of the nearest texel to the center of the pixel, then returns the weighted average of those two values.

public

Texture minification filter that chooses the mipmap that most closely matches the size of the pixel being textured and returns the weighted average of the four nearest texels to the given sample coordinates.

public

Texture wrapping mode in which the texture repeats to infinity, mirroring on each repeat.

public

Texture magnification and minification filter that returns the nearest texel to the given sample coordinates.

public

Texture minification filter that chooses two mipmaps that most closely match the size of the pixel being textured and returns the nearest texel to the center of the pixel at the given sample coordinates.

public

Texture minification filter that chooses the mipmap that most closely matches the size of the pixel being textured and returns the nearest texel to the given sample coordinates.

public

Texture minification filter that chooses two mipmaps that most closely match the size of the pixel being textured and returns the nearest texel to the center of the pixel at the given sample coordinates.

public

Texture minification filter that chooses the mipmap that most closely matches the size of the pixel being textured and returns the nearest texel to the given sample coordinates.

public

Media type for PNG images.

public

Texture wrapping mode in which the texture repeats to infinity.

XKTModel

summary
public

An object within an XKTModel.

public

An element of reusable geometry within an XKTModel.

public

Represents the usage of a XKTGeometry by an XKTEntity.

public

A meta object within an XKTModel.

public

A document model that represents the contents of an .XKT file.

public

A property set within an XKTModel.

public
public

A set of textures shared by XKTMeshes.

public

A box-shaped 3D region within an XKTModel that contains XKTEntitys.

public

F writeXKTModelToArrayBuffer(xktModel: XKTModel, metaModelJSON: String, stats: Object, options: Object): ArrayBuffer

Writes an XKTModel to an ArrayBuffer.

geometryBuilders

summary
public

Creates box-shaped triangle mesh geometry arrays.

public

Creates box-shaped line segment geometry arrays.

public

Creates cylinder-shaped geometry arrays.

public

Creates grid-shaped geometry arrays..

public

Creates plane-shaped geometry arrays.

public

Creates sphere-shaped geometry arrays.

public

Creates torus-shaped geometry arrays.

public

Creates wireframe text-shaped geometry arrays.

parsers

summary
public

Parses a CityJSON model into an XKTModel.

public

Parses glTF into an XKTModel, supporting .glb and textures.

public

Parses glTF JSON into an XKTModel, without .glb and textures.

public

Parses IFC STEP file data into an XKTModel.

public

Parses LAS and LAZ point cloud data into an XKTModel.

public

Parses JSON metamodel into an XKTModel.

public

Parses PCD point cloud data into an XKTModel.

public

F async parsePLYIntoXKTModel(params: Object): Promise

Parses PLY file data into an XKTModel.

public

F async parseSTLIntoXKTModel(params: Object): Promise

Parses STL file data into an XKTModel.