MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / unstructured_grid

Method unstructured_grid

splashsurf_lib/src/mesh.rs:1448–1460  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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
1463macro_rules! impl_into_vtk {

Callers

nothing calls this directly

Calls 2

to_vtk_attributeMethod · 0.80

Tested by

no test coverage detected