@kitware/vtk.js
Version:
Visualization Toolkit for the Web
64 lines (58 loc) • 1.73 kB
JavaScript
var AttributeTypes = {
SCALARS: 0,
VECTORS: 1,
NORMALS: 2,
TCOORDS: 3,
TENSORS: 4,
GLOBALIDS: 5,
PEDIGREEIDS: 6,
EDGEFLAG: 7,
NUM_ATTRIBUTES: 8
};
var AttributeLimitTypes = {
MAX: 0,
EXACT: 1,
NOLIMIT: 2
};
var CellGhostTypes = {
DUPLICATECELL: 1,
// the cell is present on multiple processors
HIGHCONNECTIVITYCELL: 2,
// the cell has more neighbors than in a regular mesh
LOWCONNECTIVITYCELL: 4,
// the cell has less neighbors than in a regular mesh
REFINEDCELL: 8,
// other cells are present that refines it.
EXTERIORCELL: 16,
// the cell is on the exterior of the data set
HIDDENCELL: 32 // the cell is needed to maintain connectivity, but the data values should be ignored.
};
var PointGhostTypes = {
DUPLICATEPOINT: 1,
// the cell is present on multiple processors
HIDDENPOINT: 2 // the point is needed to maintain connectivity, but the data values should be ignored.
};
var AttributeCopyOperations = {
COPYTUPLE: 0,
INTERPOLATE: 1,
PASSDATA: 2,
ALLCOPY: 3 // all of the above
};
var ghostArrayName = 'vtkGhostType';
var DesiredOutputPrecision = {
DEFAULT: 0,
// use the point type that does not truncate any data
SINGLE: 1,
// use Float32Array
DOUBLE: 2 // use Float64Array
};
var Constants = {
AttributeCopyOperations: AttributeCopyOperations,
AttributeLimitTypes: AttributeLimitTypes,
AttributeTypes: AttributeTypes,
CellGhostTypes: CellGhostTypes,
DesiredOutputPrecision: DesiredOutputPrecision,
PointGhostTypes: PointGhostTypes,
ghostArrayName: ghostArrayName
};
export { AttributeCopyOperations, AttributeLimitTypes, AttributeTypes, CellGhostTypes, DesiredOutputPrecision, PointGhostTypes, Constants as default, ghostArrayName };