在vtk中,您可以使用InsertNextCell(inttype,vtkIdTypenpts,vtkIdType*ptIds)将六角棱柱单元格添加到vtkUnstructuredGrid>。这很好,但我想在vtkUnstructuredGrid中包含一个heptagonal和octagonal棱镜。单元格类型未在vtk中定义...只是为了消除一些疑虑,我正在使用c#,但是c++或python示例足以将其转换为C#.回到问题上,我先把代码复制并稍作修改inthisexample获得体素(8点和celltype=11)vtkPointspoints=vtkPoints.New();poi