Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::ops::RangeInclusive;
use std::path::{Path, PathBuf};

use bytemuck::{cast_slice, cast_vec};
use num_derive::FromPrimitive;
use num_derive::{FromPrimitive, ToPrimitive};
use num_traits::ToPrimitive;

/// Error type describing failure modes of various model processing tasks and validation.
Expand Down Expand Up @@ -1839,7 +1839,8 @@ impl Cells {
/// These are explicitly written in `UnstructuredGrid`s and some are referred to in `PolyData`
/// datasets. For more details on each of these types see, the [VTK file
/// formats](https://kitware.github.io/vtk-examples/site/VTKFileFormats/) documentation.
#[derive(Copy, Clone, PartialEq, Debug, FromPrimitive)]
#[derive(Copy, Clone, PartialEq, Debug, FromPrimitive, ToPrimitive)]
#[repr(u8)]
pub enum CellType {
// Linear cells
Vertex = 1,
Expand Down