VTK  9.6.20260215
vtkHullEdgeTuple Struct Reference

Represent a polyhedral edge intersected by the current clipping plane. More...

#include <vtkVoronoiHull.h>

Public Member Functions

 vtkHullEdgeTuple (vtkIdType v0, vtkIdType v1)
 
bool operator== (const vtkHullEdgeTuple &et) const
 
bool operator!= (const vtkHullEdgeTuple &et) const
 
bool IsEdge (vtkIdType v0, vtkIdType v1) const
 

Public Attributes

vtkIdType V0
 
vtkIdType V1
 
vtkIdType Id
 
vtkIdType LoopIdx
 
vtkIdType Faces [2]
 

Detailed Description

Represent a polyhedral edge intersected by the current clipping plane.

The edge tuple (the edge's two end points) plus the id of the point of intersection, and the two faces intersecting the edge, are retained. The edge tuple assumes that the two vertex end points are ordered v0 < v1.

Note that after intersecting the hull with a clipping plane, the list of EdgeTuple intersection points form a new face. However, the intersection points must be sorted around the perimeter of the face, hence requires determing the loop index which orders the points into a face loop. The loop index is computed by defining a coordinate system from the clip plane normal, and the fan of diagonals connecting the points of the face loop. This can be used to create new planes that cut the loop into pieces. By counting the number of points on either side of these each plane, (due to convecity) a loop index can be determined.

Definition at line 181 of file vtkVoronoiHull.h.

Constructor & Destructor Documentation

◆ vtkHullEdgeTuple()

vtkHullEdgeTuple::vtkHullEdgeTuple ( vtkIdType v0,
vtkIdType v1 )
inline

Definition at line 189 of file vtkVoronoiHull.h.

Member Function Documentation

◆ operator==()

bool vtkHullEdgeTuple::operator== ( const vtkHullEdgeTuple & et) const
inline

Definition at line 201 of file vtkVoronoiHull.h.

◆ operator!=()

bool vtkHullEdgeTuple::operator!= ( const vtkHullEdgeTuple & et) const
inline

Definition at line 205 of file vtkVoronoiHull.h.

◆ IsEdge()

bool vtkHullEdgeTuple::IsEdge ( vtkIdType v0,
vtkIdType v1 ) const
inline

Definition at line 209 of file vtkVoronoiHull.h.

Member Data Documentation

◆ V0

vtkIdType vtkHullEdgeTuple::V0

Definition at line 183 of file vtkVoronoiHull.h.

◆ V1

vtkIdType vtkHullEdgeTuple::V1

Definition at line 184 of file vtkVoronoiHull.h.

◆ Id

vtkIdType vtkHullEdgeTuple::Id

Definition at line 185 of file vtkVoronoiHull.h.

◆ LoopIdx

vtkIdType vtkHullEdgeTuple::LoopIdx

Definition at line 186 of file vtkVoronoiHull.h.

◆ Faces

vtkIdType vtkHullEdgeTuple::Faces[2]

Definition at line 187 of file vtkVoronoiHull.h.


The documentation for this struct was generated from the following file: