
In vtk a dataset consists of a structure (geometry and topology) and
attribute data. The structure is defined implicitly or explicitly as
a collection of cells. The geometry of the structure is contained in
point coordinates plus the cell interpolation functions. The topology
of the dataset structure is defined by cell types and how the cells
share their defining points.
vtkDataSet由结构数据(geometry&topology) 和属性数据(attribute data)组成。
const DATASET_FIELDS = ['pointData', 'cellData', 'fieldData']
// Add dataset attributes
DATASET_FIELDS.forEach((fieldName) => {
if (!model[fieldName]) {
model[fieldName] = vtkDataSetAttributes.newInstance();
} else {
model[fieldName] = vtk(model[fieldName]);
}
});
class vtkPointSet extends vtkDataSet{
//Constructor & properties
static newInstance(initalValues?:{}):vtkPointSet;
getNumberOfPoints();
getBounds();
computeBounds();
shallowCopy(other, debug = false);
getPoints():Core.vtkPoints;
setPoints(vtkPoints:Core.vtkPoints);
}
getVerts()
getLines()
getPolys()
getStrips()
vtkCellArray数据存放了每个Cell元素的顶点索引
setData(typeArray)
getData()
let pld = sourcePxy.getDataset();
let points = pld.getPoints().getData();
let cells = pld.getPolys().getData();
5447



被折叠的 条评论
为什么被折叠?



