(&self)
| 1446 | /// Creates a [`vtkio::model::UnstructuredGridPiece`] representing this mesh including its attached [`MeshAttribute`]s |
| 1447 | #[cfg_attr(docsrs, doc(cfg(feature = "vtk_extras")))] |
| 1448 | fn unstructured_grid(&self) -> UnstructuredGridPiece { |
| 1449 | let mut grid_piece: UnstructuredGridPiece = (&self.mesh).into_unstructured_grid(); |
| 1450 | for point_attribute in &self.point_attributes { |
| 1451 | grid_piece |
| 1452 | .data |
| 1453 | .point |
| 1454 | .push(point_attribute.to_vtk_attribute()) |
| 1455 | } |
| 1456 | for cell_attribute in &self.cell_attributes { |
| 1457 | grid_piece.data.cell.push(cell_attribute.to_vtk_attribute()) |
| 1458 | } |
| 1459 | grid_piece |
| 1460 | } |
| 1461 | } |
| 1462 | |
| 1463 | macro_rules! impl_into_vtk { |
nothing calls this directly
no test coverage detected