VTK
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPolyhedron Class Reference

a 3D cell defined by a set of polygonal faces More...

#include <vtkPolyhedron.h>

Inheritance diagram for vtkPolyhedron:
[legend]
Collaboration diagram for vtkPolyhedron:
[legend]

Public Member Functions

void GetEdgePoints (int vtkNotUsed(edgeId), int *&vtkNotUsed(pts)) override
 See vtkCell3D API for description of these methods. More...
 
void GetFacePoints (int vtkNotUsed(faceId), int *&vtkNotUsed(pts)) override
 
doubleGetParametricCoords () override
 Return a contiguous array of parametric coordinates of the points defining this cell. More...
 
int GetCellType () override
 See the vtkCell API for descriptions of these methods. More...
 
int RequiresInitialization () override
 This cell requires that it be initialized prior to access. More...
 
void Initialize () override
 
void Contour (double value, vtkDataArray *scalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd) override
 Satisfy the vtkCell API. More...
 
void Clip (double value, vtkDataArray *scalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut) override
 Satisfy the vtkCell API. More...
 
int EvaluatePosition (double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights) override
 Satisfy the vtkCell API. More...
 
void EvaluateLocation (int &subId, double pcoords[3], double x[3], double *weights) override
 The inverse of EvaluatePosition. More...
 
int IntersectWithLine (double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId) override
 Intersect the line (p1,p2) with a given tolerance tol to determine a point of intersection x[3] with parametric coordinate t along the line. More...
 
int Triangulate (int index, vtkIdList *ptIds, vtkPoints *pts) override
 Use vtkOrderedTriangulator to tetrahedralize the polyhedron mesh. More...
 
void Derivatives (int subId, double pcoords[3], double *values, int dim, double *derivs) override
 Computes derivatives at the point specified by the parameter coordinate. More...
 
int CellBoundary (int subId, double pcoords[3], vtkIdList *pts) override
 Find the boundary face closest to the point defined by the pcoords[3] and subId of the cell (subId can be ignored). More...
 
int GetParametricCenter (double pcoords[3]) override
 Return the center of the cell in parametric coordinates. More...
 
int IsPrimaryCell () override
 A polyhedron is a full-fledged primary cell. More...
 
int IsInside (double x[3], double tolerance)
 A method particular to vtkPolyhedron. More...
 
bool IsConvex ()
 Determine whether or not a polyhedron is convex. More...
 
vtkPolyDataGetPolyData ()
 Construct polydata if no one exist, then return this->PolyData. More...
 
int GetNumberOfEdges () override
 A polyhedron is represented internally by a set of polygonal faces. More...
 
vtkCellGetEdge (int) override
 A polyhedron is represented internally by a set of polygonal faces. More...
 
int GetNumberOfFaces () override
 A polyhedron is represented internally by a set of polygonal faces. More...
 
vtkCellGetFace (int faceId) override
 A polyhedron is represented internally by a set of polygonal faces. More...
 
void InterpolateFunctions (double x[3], double *sf) override
 Compute the interpolation functions/derivatives (aka shape functions/derivatives). More...
 
void InterpolateDerivs (double x[3], double *derivs) override
 Compute the interpolation functions/derivatives (aka shape functions/derivatives). More...
 
int RequiresExplicitFaceRepresentation () override
 Methods supporting the definition of faces. More...
 
void SetFaces (vtkIdType *faces) override
 Methods supporting the definition of faces. More...
 
vtkIdTypeGetFaces () override
 Methods supporting the definition of faces. More...
 
- Public Member Functions inherited from vtkCell3D
vtkCell3DNewInstance () const
 
virtual void GetEdgePoints (int edgeId, int *&pts)=0
 Get the pair of vertices that define an edge. More...
 
virtual void GetFacePoints (int faceId, int *&pts)=0
 Get the list of vertices that define a face. More...
 
int GetCellDimension () override
 The topological dimension of the cell. More...
 
virtual void SetMergeTolerance (double)
 Set the tolerance for merging clip intersection points that are near the vertices of cells. More...
 
virtual double GetMergeTolerance ()
 Set the tolerance for merging clip intersection points that are near the vertices of cells. More...
 
- Public Member Functions inherited from vtkCell
vtkCellNewInstance () const
 
void Initialize (int npts, vtkIdType *pts, vtkPoints *p)
 Initialize cell from outside with point ids and point coordinates specified. More...
 
void Initialize (int npts, vtkPoints *p)
 Initialize the cell with point coordinates specified. More...
 
virtual void ShallowCopy (vtkCell *c)
 Copy this cell by reference counting the internal data structures. More...
 
virtual void DeepCopy (vtkCell *c)
 Copy this cell by completely copying internal data structures. More...
 
virtual int IsLinear ()
 Non-linear cells require special treatment beyond the usual cell type and connectivity list information. More...
 
virtual int IsExplicitCell ()
 Explicit cells require additional representational information beyond the usual cell type and connectivity list information. More...
 
virtual void SetFaces (vtkIdType *vtkNotUsed(faces))
 
vtkPointsGetPoints ()
 Get the point coordinates for the cell. More...
 
vtkIdType GetNumberOfPoints ()
 Return the number of points in the cell. More...
 
vtkIdListGetPointIds ()
 Return the list of point ids defining the cell. More...
 
vtkIdType GetPointId (int ptId)
 For cell point i, return the actual point id. More...
 
void GetBounds (double bounds[6])
 Compute cell bounding box (xmin,xmax,ymin,ymax,zmin,zmax). More...
 
doubleGetBounds ()
 Compute cell bounding box (xmin,xmax,ymin,ymax,zmin,zmax). More...
 
double GetLength2 ()
 Compute Length squared of cell (i.e., bounding box diagonal squared). More...
 
virtual double GetParametricDistance (double pcoords[3])
 Return the distance of the parametric coordinate provided to the cell. More...
 
virtual void InterpolateFunctions (double vtkNotUsed(pcoords)[3], double *vtkNotUsed(weight))
 Compute the interpolation functions/derivatives (aka shape functions/derivatives) No-ops at this level. More...
 
virtual void InterpolateDerivs (double vtkNotUsed(pcoords)[3], double *vtkNotUsed(derivs))
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Protected Member Functions

 vtkPolyhedron ()
 
 ~vtkPolyhedron () override
 
int GenerateEdges ()
 
void GenerateFaces ()
 
void ComputeBounds ()
 
void ComputeParametricCoordinate (double x[3], double pc[3])
 
void ComputePositionFromParametricCoordinate (double pc[3], double x[3])
 
void ConstructPolyData ()
 
void ConstructLocator ()
 
int InternalContour (double value, int insideOut, vtkIncrementalPointLocator *locator, vtkDataArray *inScalars, vtkDataArray *outScalars, vtkPointData *inPd, vtkPointData *outPd, vtkCellArray *contourPolys, vtkIdToIdVectorMapType &faceToPointsMap, vtkIdToIdVectorMapType &pointToFacesMap, vtkIdToIdMapType &pointIdMap)
 
int IntersectWithContour (double value, int insideOut, vtkDataArray *inScalars)
 
- Protected Member Functions inherited from vtkCell3D
 vtkCell3D ()
 
 ~vtkCell3D () override
 
- Protected Member Functions inherited from vtkCell
 vtkCell ()
 
 ~vtkCell () override
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkLineLine
 
vtkTriangleTriangle
 
vtkQuadQuad
 
vtkPolygonPolygon
 
vtkTetraTetra
 
vtkIdTypeArrayGlobalFaces
 
vtkIdTypeArrayFaceLocations
 
vtkPointIdMap * PointIdMap
 
int EdgesGenerated
 
vtkEdgeTableEdgeTable
 
vtkIdTypeArrayEdges
 
vtkIdTypeArrayEdgeFaces
 
vtkIdTypeArrayFaces
 
int FacesGenerated
 
int BoundsComputed
 
int PolyDataConstructed
 
vtkPolyDataPolyData
 
vtkCellArrayPolys
 
vtkIdTypeArrayPolyConnectivity
 
int LocatorConstructed
 
vtkCellLocatorCellLocator
 
vtkIdListCellIds
 
vtkGenericCellCell
 
- Protected Attributes inherited from vtkCell3D
vtkOrderedTriangulatorTriangulator
 
double MergeTolerance
 
vtkTetraClipTetra
 
vtkDoubleArrayClipScalars
 
- Protected Attributes inherited from vtkCell
double Bounds [6]
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkCell3D Superclass
 Standard new methods. More...
 
static vtkPolyhedronNew ()
 Standard new methods. More...
 
static int IsTypeOf (const char *type)
 Standard new methods. More...
 
static vtkPolyhedronSafeDownCast (vtkObjectBase *o)
 Standard new methods. More...
 
virtual int IsA (const char *type)
 Standard new methods. More...
 
vtkPolyhedronNewInstance () const
 Standard new methods. More...
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Standard new methods. More...
 
virtual vtkObjectBaseNewInstanceInternal () const
 Standard new methods. More...
 

Additional Inherited Members

- Public Types inherited from vtkCell3D
typedef vtkCell Superclass
 
- Public Types inherited from vtkCell
typedef vtkObject Superclass
 
- Static Public Member Functions inherited from vtkCell3D
static int IsTypeOf (const char *type)
 
static vtkCell3DSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkCell
static int IsTypeOf (const char *type)
 
static vtkCellSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
- Public Attributes inherited from vtkCell
vtkPointsPoints
 
vtkIdListPointIds
 

Detailed Description

a 3D cell defined by a set of polygonal faces

vtkPolyhedron is a concrete implementation that represents a 3D cell defined by a set of polygonal faces. The polyhedron should be watertight, non-self-intersecting and manifold (each edge is used twice).

Interpolation functions and weights are defined / computed using the method of Mean Value Coordinates (MVC). See the VTK class vtkMeanValueCoordinatesInterpolator for more information.

The class does not require the polyhedron to be convex. However, the polygonal faces must be planar. Non-planar polygonal faces will definitely cause problems, especially in severely warped situations.

See also
vtkCell3D vtkConvecPointSet vtkMeanValueCoordinatesInterpolator
Tests:
vtkPolyhedron (Tests)

Definition at line 60 of file vtkPolyhedron.h.

Member Typedef Documentation

Standard new methods.

Definition at line 68 of file vtkPolyhedron.h.

Constructor & Destructor Documentation

vtkPolyhedron::vtkPolyhedron ( )
protected
vtkPolyhedron::~vtkPolyhedron ( )
overrideprotected

Member Function Documentation

static vtkPolyhedron* vtkPolyhedron::New ( )
static

Standard new methods.

static int vtkPolyhedron::IsTypeOf ( const char *  type)
static

Standard new methods.

virtual int vtkPolyhedron::IsA ( const char *  type)
virtual

Standard new methods.

Reimplemented from vtkCell3D.

static vtkPolyhedron* vtkPolyhedron::SafeDownCast ( vtkObjectBase o)
static

Standard new methods.

virtual vtkObjectBase* vtkPolyhedron::NewInstanceInternal ( ) const
protectedvirtual

Standard new methods.

Reimplemented from vtkCell3D.

vtkPolyhedron* vtkPolyhedron::NewInstance ( ) const

Standard new methods.

void vtkPolyhedron::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Standard new methods.

Reimplemented from vtkCell3D.

void vtkPolyhedron::GetEdgePoints ( int   vtkNotUsededgeId,
int *&  vtkNotUsedpts 
)
inlineoverride

See vtkCell3D API for description of these methods.

Definition at line 75 of file vtkPolyhedron.h.

void vtkPolyhedron::GetFacePoints ( int   vtkNotUsedfaceId,
int *&  vtkNotUsedpts 
)
inlineoverride

Definition at line 76 of file vtkPolyhedron.h.

double* vtkPolyhedron::GetParametricCoords ( )
overridevirtual

Return a contiguous array of parametric coordinates of the points defining this cell.

In other words, (px,py,pz, px,py,pz, etc..) The coordinates are ordered consistent with the definition of the point ordering for the cell. This method returns a non-NULL pointer when the cell is a primary type (i.e., IsPrimaryCell() is true). Note that 3D parametric coordinates are returned no matter what the topological dimension of the cell.

Reimplemented from vtkCell.

int vtkPolyhedron::GetCellType ( )
inlineoverridevirtual

See the vtkCell API for descriptions of these methods.

Implements vtkCell.

Definition at line 82 of file vtkPolyhedron.h.

int vtkPolyhedron::RequiresInitialization ( )
inlineoverridevirtual

This cell requires that it be initialized prior to access.

Reimplemented from vtkCell.

Definition at line 87 of file vtkPolyhedron.h.

void vtkPolyhedron::Initialize ( )
overridevirtual

Reimplemented from vtkCell.

int vtkPolyhedron::GetNumberOfEdges ( )
overridevirtual

A polyhedron is represented internally by a set of polygonal faces.

These faces can be processed to explicitly determine edges.

Implements vtkCell.

vtkCell* vtkPolyhedron::GetEdge ( int  )
overridevirtual

A polyhedron is represented internally by a set of polygonal faces.

These faces can be processed to explicitly determine edges.

Implements vtkCell.

int vtkPolyhedron::GetNumberOfFaces ( )
overridevirtual

A polyhedron is represented internally by a set of polygonal faces.

These faces can be processed to explicitly determine edges.

Implements vtkCell.

vtkCell* vtkPolyhedron::GetFace ( int  faceId)
overridevirtual

A polyhedron is represented internally by a set of polygonal faces.

These faces can be processed to explicitly determine edges.

Implements vtkCell.

void vtkPolyhedron::Contour ( double  value,
vtkDataArray scalars,
vtkIncrementalPointLocator locator,
vtkCellArray verts,
vtkCellArray lines,
vtkCellArray polys,
vtkPointData inPd,
vtkPointData outPd,
vtkCellData inCd,
vtkIdType  cellId,
vtkCellData outCd 
)
overridevirtual

Satisfy the vtkCell API.

This method contours the input polyhedron and outputs a polygon. When the result polygon is not planar, it will be triangulated. The current implementation assumes water-tight polyhedron cells.

Reimplemented from vtkCell3D.

void vtkPolyhedron::Clip ( double  value,
vtkDataArray scalars,
vtkIncrementalPointLocator locator,
vtkCellArray connectivity,
vtkPointData inPd,
vtkPointData outPd,
vtkCellData inCd,
vtkIdType  cellId,
vtkCellData outCd,
int  insideOut 
)
overridevirtual

Satisfy the vtkCell API.

This method clips the input polyhedron and outputs a new polyhedron. The face information of the output polyhedron is encoded in the output vtkCellArray using a special format: CellLength [nCellFaces, nFace0Pts, i, j, k, nFace1Pts, i, j, k, ...]. Use the static method vtkUnstructuredGrid::DecomposePolyhedronCellArray to convert it into a standard format. Note: the algorithm assumes water-tight polyhedron cells.

Reimplemented from vtkCell3D.

int vtkPolyhedron::EvaluatePosition ( double  x[3],
double closestPoint,
int subId,
double  pcoords[3],
double dist2,
double weights 
)
overridevirtual

Satisfy the vtkCell API.

The subId is ignored and zero is always returned. The parametric coordinates pcoords are normalized values in the bounding box of the polyhedron. The weights are determined by evaluating the MVC coordinates. The dist is always zero if the point x[3] is inside the polyhedron; otherwise it's the distance to the surface.

Implements vtkCell.

void vtkPolyhedron::EvaluateLocation ( int subId,
double  pcoords[3],
double  x[3],
double weights 
)
overridevirtual

The inverse of EvaluatePosition.

Note the weights should be the MVC weights.

Implements vtkCell.

int vtkPolyhedron::IntersectWithLine ( double  p1[3],
double  p2[3],
double  tol,
double t,
double  x[3],
double  pcoords[3],
int subId 
)
overridevirtual

Intersect the line (p1,p2) with a given tolerance tol to determine a point of intersection x[3] with parametric coordinate t along the line.

The parametric coordinates are returned as well (subId can be ignored). Returns the number of intersection points.

Implements vtkCell.

int vtkPolyhedron::Triangulate ( int  index,
vtkIdList ptIds,
vtkPoints pts 
)
overridevirtual

Use vtkOrderedTriangulator to tetrahedralize the polyhedron mesh.

This method works well for a convex polyhedron but may return wrong result in a concave case. Once triangulation has been performed, the results are saved in ptIds and pts. The ptIds is a vtkIdList with 4xn number of ids (n is the number of result tetrahedrons). The first 4 represent the point ids of the first tetrahedron, the second 4 represents the point ids of the second tetrahedron and so on. The point ids represent global dataset ids. The points of result tetrahedons are stored in pts. Note that there are 4xm output points (m is the number of points in the original polyhedron). A point may be stored multiple times when it is shared by more than one tetrahedrons. The points stored in pts are ordered the same as they are listed in ptIds.

Implements vtkCell.

void vtkPolyhedron::Derivatives ( int  subId,
double  pcoords[3],
double values,
int  dim,
double derivs 
)
overridevirtual

Computes derivatives at the point specified by the parameter coordinate.

Current implementation uses all vertices and subId is not used. To accelerate the speed, the future implementation can triangulate and extract the local tetrahedron from subId and pcoords, then evaluate derivatives on the local tetrahedron.

Implements vtkCell.

int vtkPolyhedron::CellBoundary ( int  subId,
double  pcoords[3],
vtkIdList pts 
)
overridevirtual

Find the boundary face closest to the point defined by the pcoords[3] and subId of the cell (subId can be ignored).

Implements vtkCell.

int vtkPolyhedron::GetParametricCenter ( double  pcoords[3])
inlineoverridevirtual

Return the center of the cell in parametric coordinates.

In this cell, the center of the bounding box is returned.

Reimplemented from vtkCell.

Definition at line 329 of file vtkPolyhedron.h.

int vtkPolyhedron::IsPrimaryCell ( )
inlineoverridevirtual

A polyhedron is a full-fledged primary cell.

Reimplemented from vtkCell.

Definition at line 196 of file vtkPolyhedron.h.

void vtkPolyhedron::InterpolateFunctions ( double  x[3],
double sf 
)
override

Compute the interpolation functions/derivatives (aka shape functions/derivatives).

Here we use the MVC calculation process to compute the interpolation functions.

void vtkPolyhedron::InterpolateDerivs ( double  x[3],
double derivs 
)
override

Compute the interpolation functions/derivatives (aka shape functions/derivatives).

Here we use the MVC calculation process to compute the interpolation functions.

int vtkPolyhedron::RequiresExplicitFaceRepresentation ( )
inlineoverridevirtual

Methods supporting the definition of faces.

Note that the GetFaces() returns a list of faces in vtkCellArray form; use the method GetNumberOfFaces() to determine the number of faces in the list. The SetFaces() method is also in vtkCellArray form, except that it begins with a leading count indicating the total number of faces in the list.

Reimplemented from vtkCell.

Definition at line 217 of file vtkPolyhedron.h.

void vtkPolyhedron::SetFaces ( vtkIdType faces)
override

Methods supporting the definition of faces.

Note that the GetFaces() returns a list of faces in vtkCellArray form; use the method GetNumberOfFaces() to determine the number of faces in the list. The SetFaces() method is also in vtkCellArray form, except that it begins with a leading count indicating the total number of faces in the list.

vtkIdType* vtkPolyhedron::GetFaces ( )
overridevirtual

Methods supporting the definition of faces.

Note that the GetFaces() returns a list of faces in vtkCellArray form; use the method GetNumberOfFaces() to determine the number of faces in the list. The SetFaces() method is also in vtkCellArray form, except that it begins with a leading count indicating the total number of faces in the list.

Reimplemented from vtkCell.

int vtkPolyhedron::IsInside ( double  x[3],
double  tolerance 
)

A method particular to vtkPolyhedron.

It determines whether a point x[3] is inside the polyhedron or not (returns 1 is the point is inside, 0 otherwise). The tolerance is expressed in normalized space; i.e., a fraction of the size of the bounding box.

bool vtkPolyhedron::IsConvex ( )

Determine whether or not a polyhedron is convex.

This method is adapted from Devillers et al., "Checking the Convexity of Polytopes and the Planarity of Subdivisions", Computational Geometry, Volume 11, Issues 3 - 4, December 1998, Pages 187 - 208.

vtkPolyData* vtkPolyhedron::GetPolyData ( )

Construct polydata if no one exist, then return this->PolyData.

int vtkPolyhedron::GenerateEdges ( )
protected
void vtkPolyhedron::GenerateFaces ( )
protected
void vtkPolyhedron::ComputeBounds ( )
protected
void vtkPolyhedron::ComputeParametricCoordinate ( double  x[3],
double  pc[3] 
)
protected
void vtkPolyhedron::ComputePositionFromParametricCoordinate ( double  pc[3],
double  x[3] 
)
protected
void vtkPolyhedron::ConstructPolyData ( )
protected
void vtkPolyhedron::ConstructLocator ( )
protected
int vtkPolyhedron::InternalContour ( double  value,
int  insideOut,
vtkIncrementalPointLocator locator,
vtkDataArray inScalars,
vtkDataArray outScalars,
vtkPointData inPd,
vtkPointData outPd,
vtkCellArray contourPolys,
vtkIdToIdVectorMapType &  faceToPointsMap,
vtkIdToIdVectorMapType &  pointToFacesMap,
vtkIdToIdMapType &  pointIdMap 
)
protected
int vtkPolyhedron::IntersectWithContour ( double  value,
int  insideOut,
vtkDataArray inScalars 
)
protected

Member Data Documentation

vtkLine* vtkPolyhedron::Line
protected

Definition at line 248 of file vtkPolyhedron.h.

vtkTriangle* vtkPolyhedron::Triangle
protected

Definition at line 249 of file vtkPolyhedron.h.

vtkQuad* vtkPolyhedron::Quad
protected

Definition at line 250 of file vtkPolyhedron.h.

vtkPolygon* vtkPolyhedron::Polygon
protected

Definition at line 251 of file vtkPolyhedron.h.

vtkTetra* vtkPolyhedron::Tetra
protected

Definition at line 252 of file vtkPolyhedron.h.

vtkIdTypeArray* vtkPolyhedron::GlobalFaces
protected

Definition at line 253 of file vtkPolyhedron.h.

vtkIdTypeArray* vtkPolyhedron::FaceLocations
protected

Definition at line 254 of file vtkPolyhedron.h.

vtkPointIdMap* vtkPolyhedron::PointIdMap
protected

Definition at line 261 of file vtkPolyhedron.h.

int vtkPolyhedron::EdgesGenerated
protected

Definition at line 265 of file vtkPolyhedron.h.

vtkEdgeTable* vtkPolyhedron::EdgeTable
protected

Definition at line 266 of file vtkPolyhedron.h.

vtkIdTypeArray* vtkPolyhedron::Edges
protected

Definition at line 267 of file vtkPolyhedron.h.

vtkIdTypeArray* vtkPolyhedron::EdgeFaces
protected

Definition at line 268 of file vtkPolyhedron.h.

vtkIdTypeArray* vtkPolyhedron::Faces
protected

Definition at line 275 of file vtkPolyhedron.h.

int vtkPolyhedron::FacesGenerated
protected

Definition at line 276 of file vtkPolyhedron.h.

int vtkPolyhedron::BoundsComputed
protected

Definition at line 280 of file vtkPolyhedron.h.

int vtkPolyhedron::PolyDataConstructed
protected

Definition at line 286 of file vtkPolyhedron.h.

vtkPolyData* vtkPolyhedron::PolyData
protected

Definition at line 287 of file vtkPolyhedron.h.

vtkCellArray* vtkPolyhedron::Polys
protected

Definition at line 288 of file vtkPolyhedron.h.

vtkIdTypeArray* vtkPolyhedron::PolyConnectivity
protected

Definition at line 289 of file vtkPolyhedron.h.

int vtkPolyhedron::LocatorConstructed
protected

Definition at line 291 of file vtkPolyhedron.h.

vtkCellLocator* vtkPolyhedron::CellLocator
protected

Definition at line 292 of file vtkPolyhedron.h.

vtkIdList* vtkPolyhedron::CellIds
protected

Definition at line 294 of file vtkPolyhedron.h.

vtkGenericCell* vtkPolyhedron::Cell
protected

Definition at line 295 of file vtkPolyhedron.h.


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