Constructor
new Structure()
Root class for 3D objects: atomic (module:structure.Molecule), map, or any 3D graphics vectorial object
Members
bbox
Bounding Box
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
min |
vec3 | Top-left-front corner of the bounding box Properties
|
||||||||||||
max |
vec3 | Bottom-right-back corner of the bounding box Properties
|
centroid :vec3
Center of Gravity - Centroid
Type:
- vec3
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
centroid |
vec3 | Center of gravity or centroid of this structure Properties
|
ID :string
Identifier
Type:
- string
information :object
Information
Type:
- object
Methods
isMolecule() → {boolean}
Is this structure an atomic model? (instance of class Molecule)
Returns:
- true if this structure is an atomic model.
- Type
- boolean
isRaster() → {boolean}
Is this structure a 2D/3D-raster? (instance of class Raster)
Returns:
- true if this structure is a 2D- or 3D-raster (image or volume/map).
- Type
- boolean
setTitle(str)
Set Title
Parameters:
Name | Type | Description |
---|---|---|
str |
string | Set a new title |