mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Derive Error
for HalfEdgeHasNoSibling
This commit is contained in:
parent
f2bf1ede75
commit
a06a8c0102
@ -39,7 +39,7 @@ impl Validate for Shell {
|
|||||||
#[derive(Clone, Debug, thiserror::Error)]
|
#[derive(Clone, Debug, thiserror::Error)]
|
||||||
pub enum ShellValidationError {
|
pub enum ShellValidationError {
|
||||||
/// [`Shell`] contains a half-edge that is not part of a pair
|
/// [`Shell`] contains a half-edge that is not part of a pair
|
||||||
#[error("Half-edge has no sibling: {:#?}", .0.half_edge)]
|
#[error(transparent)]
|
||||||
HalfEdgeHasNoSibling(HalfEdgeHasNoSibling),
|
HalfEdgeHasNoSibling(HalfEdgeHasNoSibling),
|
||||||
|
|
||||||
/// [`Shell`] contains half-edges that are coincident, but aren't siblings
|
/// [`Shell`] contains half-edges that are coincident, but aren't siblings
|
||||||
|
@ -11,7 +11,8 @@ use crate::{storage::Handle, topology::HalfEdge};
|
|||||||
/// - If the shell is closed, that its topological object graph is not valid.
|
/// - If the shell is closed, that its topological object graph is not valid.
|
||||||
///
|
///
|
||||||
/// [`Shell`]: crate::topology::Shell
|
/// [`Shell`]: crate::topology::Shell
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, thiserror::Error)]
|
||||||
|
#[error("Half-edge has no sibling: {half_edge:#?}")]
|
||||||
pub struct HalfEdgeHasNoSibling {
|
pub struct HalfEdgeHasNoSibling {
|
||||||
/// The half-edge that does not have a sibling
|
/// The half-edge that does not have a sibling
|
||||||
pub half_edge: Handle<HalfEdge>,
|
pub half_edge: Handle<HalfEdge>,
|
||||||
|
Loading…
Reference in New Issue
Block a user