paraview-glance
Version:
Web application for Visualizing Scientific and Medical datasets
21 lines (16 loc) • 937 B
JavaScript
;
const IntTypes = require('./IntTypes.js');
const FloatTypes = require('./FloatTypes.js');
const PixelTypes = require('./PixelTypes.js');
const MeshType = function (dimension = 2, pointComponentType = FloatTypes.Float32, pointPixelComponentType = FloatTypes.Float32, pointPixelType = PixelTypes.Scalar, pointPixelComponents = 1, cellComponentType = IntTypes.Int32, cellPixelComponentType = FloatTypes.Float32, cellPixelType = PixelTypes.Scalar, cellPixelComponents = 1) {
this.dimension = dimension;
this.pointComponentType = pointComponentType;
this.pointPixelComponentType = pointPixelComponentType;
this.pointPixelType = pointPixelType;
this.pointPixelComponents = pointPixelComponents;
this.cellComponentType = cellComponentType;
this.cellPixelComponentType = cellPixelComponentType;
this.cellPixelType = cellPixelType;
this.cellPixelComponents = cellPixelComponents;
};
module.exports = MeshType;