Asy-Atoms
An asymptote package for rendering atomic structures
Public Member Functions | Data Fields
VolumetricData Struct Reference

General structure to store and draw volumetric data. More...

Collaboration diagram for VolumetricData:
Collaboration graph
[legend]

Public Member Functions

void operator init (real[] data, int nx, int ny, int nz, real lx, real ly, real lz, Basis basis)
 Constructor for Volumetric data. More...
 
bool dimensionCheck ()
 
void getEverythingReal (real isovalue=this.isovalue)
 
void getEverything (real isovalue=this.isovalue)
 
real getValue (real x, real y, real z)
 
void draw_marching (real isovalue=this.isovalue)
 
real kernel (real x, real y, real z)
 
void draw (real isovalue=this.isovalue, pen color=this.color)
 
void draw_voxel (real isovalue=this.isovalue, pen color=this.color)
 

Data Fields

real[] data
 
real isovalue =1
 
int nx
 
int ny
 
int nz
 
real lx
 
real ly
 
real lz
 
pen color = red
 
Basis basis
 

Detailed Description

General structure to store and draw volumetric data.

Member Function Documentation

void VolumetricData::operator init ( real[]  data,
int  nx,
int  ny,
int  nz,
real  lx,
real  ly,
real  lz,
Basis  basis 
)
inline

Constructor for Volumetric data.

Parameters
dataVolumetric data in Cube file format
basisBase type structure for rendering correctly the voxels
nxHow many points in x-direction
nyHow many points in y-direction
nzHow many points in z-direction

The documentation for this struct was generated from the following file: