NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import Surface from 'ngl/src/surface/surface.js'
public class | source

Surface

Surface

Constructor Summary

Public Constructor
public

constructor(name: String, path: String, data: Object)

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public
public
public get

Method Summary

Public Methods
public
public
public
public
public
public
public
public
public
public
public

set(position: Float32Array, index: Int32Array, normal: Float32Array, color: Float32Array, atomindex: Int32Array, contour: boolean): undefined

set surface data

Public Constructors

public constructor(name: String, path: String, data: Object) source

Params:

NameTypeAttributeDescription
name String

surface name

path String

source path

data Object

surface data

data.position Float32Array

surface positions

data.index Int32Array

surface indices

data.normal Float32Array

surface normals

data.color Float32Array

surface colors

data.atomindex Int32Array

atom indices

data.contour boolean

contour mode flag

Public Members

public atomindex: Int32Array | undefined source

public boundingBox source

public center source

public color: Float32Array | undefined source

public contour source

public info source

public name source

public normal: Float32Array | undefined source

public path source

public position: Float32Array source

public size source

public get type source

Public Methods

public dispose() source

public fromGeometry() source

public getAtomindex() source

public getColor() source

public getFilteredIndex() source

public getIndex() source

public getNormal() source

public getPicking() source

public getPosition() source

public getSize() source

public set(position: Float32Array, index: Int32Array, normal: Float32Array, color: Float32Array, atomindex: Int32Array, contour: boolean): undefined source

set surface data

Params:

NameTypeAttributeDescription
position Float32Array

surface positions

index Int32Array

surface indices

normal Float32Array

surface normals

color Float32Array

surface colors

atomindex Int32Array

atom indices

contour boolean

contour mode flag

Return:

undefined