NGL@0.10.4 Home Manual Reference Source GalleryRepository
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

Method Summary

Public Methods
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 color: Float32Array | undefined source

public normal: Float32Array | undefined source

public position: Float32Array source

Public Methods

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