VTK  9.7.20261107
vtkResolveHangingNodes Class Reference

#include <vtkResolveHangingNodes.h>

Detailed Description

make a 2D or 3D multi-resolution mesh conforming by inserting hanging points

vtkResolveHangingNodes takes a vtkPolyData, vtkUnstructuredGrid or vtkCartesianGrid, or a vtkPartitionedDataSet, vtkPartitionedDataSetCollection or vtkNonOverlappingAMR of them, made of quads (2D) or hexahedra (3D), or pixels or voxels for a vtkCartesianGrid, that tile space at different refinement levels, e.g., as produced by block-structured adaptive mesh refinement (M. J. Berger, P. Colella, "Local adaptive mesh refinement for shock hydrodynamics", Journal of Computational Physics 82, pp. 64-84, 1989). Where a coarse cell borders finer cells, the corners of the finer cells lie on the edges or faces of the coarse cell without being points of it: they are hanging nodes. This filter resolves them by inserting these hanging points into the coarse cells, which keeps them as points, so that neighboring cells share their points along their common boundary, which makes the interpolation of point data continuous across levels.

The cells do not need to be axis aligned, and may have different lengths in each direction.

Algorithm

  1. Find the candidate cells: the cells with an edge (2D) or face (3D) without neighbor, i.e., the cells on both sides of a level transition and at the boundary of the data. The other cells are copied unchanged. In 3D, a cell can also touch finer cells only along an edge, with all its faces matched: the cells with an edge of an unmatched face are candidates too.
  2. Insert in the candidate cells the existing points that lie strictly inside these edges and faces, within Tolerance. All the cells sharing an edge search it, so they find the same points.
  3. The edges and faces that still have no neighbor are the true boundary of the data. In a vtkPartitionedDataSet or in distributed data, the points that hang on them belong to other partitions: see "Points of other partitions" below.

Number of levels

Consecutive levels differ by a refinement ratio of 2 in each direction, i.e., their cell areas (2D) or volumes (3D) differ by a factor of 4 or 8. The number of levels is computed from the ratio of the largest to the smallest measure of the candidate cells, which include the coarsest and the finest cells of a connected mesh. A warning is issued if the measures are not consistent with this ratio.

Points of other partitions

The partitions of a vtkPartitionedDataSet are resolved together, and every vtkPartitionedDataSet of the collection on its own, since it is the one whose partitions may share hanging nodes. The blocks of all the levels of a vtkNonOverlappingAMR are resolved together, but a level is conforming, so a block only receives the points of the blocks of other levels. A vtkCartesianGrid is conforming too: its candidate cells are its boundary cells, and it has no hanging node by itself. vtkOverlappingAMR is not supported, since its levels overlap. The points of the other partitions (remote points) that lie on the true boundary of a partition are inserted in its cells, and added with their point data to its output, so that the partitions end up with identical points along their common boundary. The partitions whose boundary bounds overlap are neighbors, and they share which bins of their bounds their boundary edges or faces occupy, so each partition receives only the points of its neighbors that are near its own boundary (see GetRemotePoints()). A parallel subclass (vtkPResolveHangingNodes) exchanges them between the partitions of all the processes, by overriding UseRemotePoints() and GetRemotePoints().

Output

Only the candidate cells with hanging points change, and the cells keep their order, so the cell data stays valid. The points are the input points, followed by the remote points that are used, if any, and the center points of the 3D decomposition below. The point and cell data are passed: the remote points keep the global ids of the points they copy, and the center points get new ones (see below), but the cell global ids are removed if cells are decomposed, since the new cells have none.

The output has the structure of the input. A vtkCartesianGrid gives a vtkUnstructuredGrid of quads or hexahedra, and a vtkNonOverlappingAMR a vtkPartitionedDataSetCollection of them with the same structure.

When Decompose is true (the default), each cell with hanging points is replaced, at the same place in the cell order, by several cells that copy its cell data: triangles and quads in 2D, tetrahedra and pyramids in 3D. A quad, or a face of a hexahedron, with hanging points on its edges is split into triangles and quads in a way that only depends on which of its edges are split, so that the 2 cells sharing a face split it the same way, even on different processes. In 3D, a face with a hanging point at its center is split into the 4 faces of the finer neighbors, and the cell is decomposed by pulling (coning) a point over its faces (see the pulling triangulations in J. A. De Loera, J. Rambau, F. Santos, "Triangulations: Structures for Algorithms and Applications", Springer, 2010). A coarse cell next to finer cells across one face (5 pyramids and 4 tetrahedra) or along one edge (4 pyramids) is decomposed without a new point. The other cases pull a new point at the center of the cell, whose point data is the average of the points of the cell, for the arrays that are interpolated (see vtkDataSetAttributes), while the others, e.g., the pedigree ids, get null values. With point global ids, the center points get new global ids, after the largest one of the input, unique over all the partitions and processes, and over all the vtkPartitionedDataSet of a vtkPartitionedDataSetCollection.

When Decompose is false, each cell with hanging points becomes one polygon (2D) or one polyhedron (3D).

If ComputeInverseMeasure is true, an "InverseArea" (2D) or "InverseVolume" (3D) cell array is added to the output. If PassThroughCellIds is true, a "vtkOriginalResolvedCellIds" cell array (see OriginalCellIdsName) with the input cell of every output cell is added to the output. The partitions without cells get these arrays too, empty.

Warning
The input, or every partition of a collection, must have only quads (2D) or only hexahedra (3D), or be a 2D or 3D vtkCartesianGrid without blanking, with the same dimension for all the partitions resolved together, otherwise the filter reports an error and fails. A vtkUnstructuredGrid of pixels or voxels, e.g., from vtkThreshold of a vtkImageData, is not supported. Neighboring cells must share their points where they touch at corners, i.e., coincident points must be merged, and the mesh must be manifold: apart from the hanging nodes, an edge (2D) or face (3D) has at most one neighbor. Cells sharing an edge or a face must differ by at most one level.
This class has been threaded with vtkSMPTools. Using TBB or other non-sequential execution type (set in the CMake variable VTK_SMP_IMPLEMENTATION_TYPE) may improve performance significantly.
See also
vtkPResolveHangingNodes vtkCellDataToPointData
Tests:
vtkResolveHangingNodes (Tests)

Definition at line 137 of file vtkResolveHangingNodes.h.

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

Classes

struct  BoundaryBins
 Helper for the exchange of points between partitions: the bins of the boundary of a partition, laid out as in vtkStaticCellLocator (Bounds, Divisions, bin indices ijk and bin index), with one bit per bin telling if a boundary element (edge in 2D, face in 3D) of the partition overlaps the bin. More...

Public Types

typedef vtkDataObjectAlgorithm Superclass
Public Types inherited from vtkDataObjectAlgorithm
typedef vtkAlgorithm Superclass
Public Types inherited from vtkAlgorithm
enum  DesiredOutputPrecision { SINGLE_PRECISION , DOUBLE_PRECISION , DEFAULT_PRECISION }
 Values used for setting the desired output precision for various algorithms. More...
typedef vtkObject Superclass

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class.
vtkResolveHangingNodes * NewInstance () const
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
virtual int GetNumberOfLevels ()
 Number of refinement levels of the mesh, computed by the last execution: the largest one over the vtkPartitionedDataSet of a vtkPartitionedDataSetCollection.
virtual void SetTolerance (double)
 Tolerance to decide whether a point lies on an edge or face, as a fraction of the length of the edge or of the diagonal of the face.
virtual double GetTolerance ()
 Tolerance to decide whether a point lies on an edge or face, as a fraction of the length of the edge or of the diagonal of the face.
virtual void SetDecompose (bool)
 Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).
virtual bool GetDecompose ()
 Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).
virtual void DecomposeOn ()
 Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).
virtual void DecomposeOff ()
 Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).
virtual void SetComputeInverseMeasure (bool)
 Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).
virtual bool GetComputeInverseMeasure ()
 Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).
virtual void ComputeInverseMeasureOn ()
 Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).
virtual void ComputeInverseMeasureOff ()
 Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).
virtual void SetPassThroughCellIds (bool)
 Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.
virtual bool GetPassThroughCellIds ()
 Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.
virtual void PassThroughCellIdsOn ()
 Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.
virtual void PassThroughCellIdsOff ()
 Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.
 vtkSetStdStringFromCharMacro (OriginalCellIdsName)
 The name of the cell array of PassThroughCellIds.
 vtkGetCharFromStdStringMacro (OriginalCellIdsName)
 The name of the cell array of PassThroughCellIds.
Public Member Functions inherited from vtkDataObjectAlgorithm
vtkDataObjectAlgorithm * NewInstance () const
vtkTypeBool ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 see vtkAlgorithm for details
vtkDataObject * GetInput ()
vtkDataObject * GetInput (int port)
vtkDataObject * GetOutput ()
 Get the output data object for a port on this algorithm.
vtkDataObject * GetOutput (int)
 Get the output data object for a port on this algorithm.
virtual void SetOutput (vtkDataObject *d)
 Get the output data object for a port on this algorithm.
void SetInputData (vtkDataObject *)
 Assign a data object as input.
void SetInputData (int, vtkDataObject *)
 Assign a data object as input.
void AddInputData (vtkDataObject *)
 Assign a data object as input.
void AddInputData (int, vtkDataObject *)
 Assign a data object as input.
Public Member Functions inherited from vtkAlgorithm
vtkAlgorithm * NewInstance () const
vtkTypeBool HasExecutive ()
 Check whether this algorithm has an assigned executive.
vtkExecutive * GetExecutive ()
 Get this algorithm's executive.
virtual void SetExecutive (vtkExecutive *executive)
 Set this algorithm's executive.
vtkTypeBool ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 Version of ProcessRequest() that is wrapped.
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
 A special version of ProcessRequest meant specifically for the pipeline modified time request.
virtual int ModifyRequest (vtkInformation *request, int when)
 This method gives the algorithm a chance to modify the contents of a request before or after (specified in the when argument) it is forwarded.
vtkInformation * GetInputPortInformation (int port)
 Get the information object associated with an input port.
vtkInformation * GetOutputPortInformation (int port)
 Get the information object associated with an output port.
int GetNumberOfInputPorts ()
 Get the number of input ports used by the algorithm.
int GetNumberOfOutputPorts ()
 Get the number of output ports provided by the algorithm.
void SetAbortExecuteAndUpdateTime ()
 Set AbortExecute Flag and update LastAbortTime.
void UpdateProgress (double amount)
 Update the progress of the process object.
bool CheckAbort ()
 Check to see if an input's ABORTED flag is set or if an upstream algorithm's AbortExecute is set.
bool CheckAbortAndInvoke ()
 Invoke AbortCheck event then return CheckAbort result.
void InvokeCleanupAbortCheck ()
 Invoke CleanupAbortCheck event, usually used by application to cleanup multi process communications triggered by CheckAbortAndInvoke.
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 Set the input data arrays that this algorithm will process.
int GetNumberOfInputArraySpecifications ()
 Get the number of input array indices that have already been set.
bool ResetInputArraySpecifications ()
 Clear all existing input array specifications (as if SetInputArrayToProcess had never been called).
vtkInformation * GetInputArrayInformation (int idx)
 Get the info object for the specified input array to this algorithm.
void RemoveAllInputs ()
 Remove all the input data.
vtkDataObject * GetOutputDataObject (int port)
 Get the data object that will contain the algorithm output for the given port.
vtkDataObject * GetInputDataObject (int port, int connection)
 Get the data object that will contain the algorithm input for the given port and given connection.
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 Remove a connection from the given input port index.
virtual void RemoveInputConnection (int port, int idx)
 Remove a connection given by index idx.
virtual void RemoveAllInputConnections (int port)
 Removes all input connections.
virtual void SetInputDataObject (int port, vtkDataObject *data)
 Sets the data-object as an input on the given port index.
virtual void SetInputDataObject (vtkDataObject *data)
virtual void AddInputDataObject (int port, vtkDataObject *data)
 Add the data-object as an input to this given port.
virtual void AddInputDataObject (vtkDataObject *data)
vtkAlgorithmOutput * GetOutputPort (int index)
 Get a proxy object corresponding to the given output port of this algorithm.
vtkAlgorithmOutput * GetOutputPort ()
int GetNumberOfInputConnections (int port)
 Get the number of inputs currently connected to a port.
int GetTotalNumberOfInputConnections ()
 Get the total number of inputs for this algorithm.
vtkAlgorithmOutput * GetInputConnection (int port, int index)
 Get the algorithm output port connected to an input port.
vtkAlgorithm * GetInputAlgorithm (int port, int index, int &algPort)
 Returns the algorithm and the output port index of that algorithm connected to a port-index pair.
vtkAlgorithm * GetInputAlgorithm (int port, int index)
 Returns the algorithm connected to a port-index pair.
vtkAlgorithm * GetInputAlgorithm ()
 Equivalent to GetInputAlgorithm(0, 0).
vtkExecutive * GetInputExecutive (int port, int index)
 Returns the executive associated with a particular input connection.
vtkExecutive * GetInputExecutive ()
 Equivalent to GetInputExecutive(0, 0).
vtkInformation * GetInputInformation (int port, int index)
 Return the information object that is associated with a particular input connection.
vtkInformation * GetInputInformation ()
 Equivalent to GetInputInformation(0, 0).
vtkInformation * GetOutputInformation (int port)
 Return the information object that is associated with a particular output port.
virtual vtkTypeBool Update (int port, vtkInformationVector *requests)
 This method enables the passing of data requests to the algorithm to be used during execution (in addition to bringing a particular port up-to-date).
virtual vtkTypeBool Update (vtkInformation *requests)
 Convenience method to update an algorithm after passing requests to its first output port.
virtual int UpdatePiece (int piece, int numPieces, int ghostLevels, const int extents[6]=nullptr)
 Convenience method to update an algorithm after passing requests to its first output port.
virtual int UpdateExtent (const int extents[6])
 Convenience method to update an algorithm after passing requests to its first output port.
virtual int UpdateTimeStep (double time, int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=nullptr)
 Convenience method to update an algorithm after passing requests to its first output port.
virtual bool UpdateInformation ()
 Bring the algorithm's information up-to-date.
virtual bool UpdateDataObject ()
 Create output object(s).
virtual void PropagateUpdateExtent ()
 Propagate meta-data upstream.
virtual bool UpdateWholeExtent ()
 Bring this algorithm's outputs up-to-date.
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 Convenience routine to convert from a linear ordering of input connections to a port/connection pair.
void RemoveNoPriorTemporalAccessInformationKey ()
 Removes any information key vtkStreamingDemandDrivenPipeline::NO_PRIOR_TEMPORAL_ACCESS() to all output ports of this vtkAlgorithm.
virtual vtkInformation * GetInformation ()
 Set/Get the information object associated with this algorithm.
virtual void SetInformation (vtkInformation *)
 Set/Get the information object associated with this algorithm.
bool UsesGarbageCollector () const override
 Participate in garbage collection.
virtual void SetAbortExecute (vtkTypeBool)
 Set/Get the AbortExecute flag for the process object.
virtual vtkTypeBool GetAbortExecute ()
 Set/Get the AbortExecute flag for the process object.
virtual void AbortExecuteOn ()
 Set/Get the AbortExecute flag for the process object.
virtual void AbortExecuteOff ()
 Set/Get the AbortExecute flag for the process object.
virtual double GetProgress ()
 Get the execution progress of a process object.
void SetContainerAlgorithm (vtkAlgorithm *containerAlg)
 Set/get a Container algorithm for this algorithm.
vtkAlgorithm * GetContainerAlgorithm ()
 Set/get a Container algorithm for this algorithm.
virtual void SetAbortOutput (bool)
 Set/Get an internal variable used to communicate between the algorithm and executive.
virtual bool GetAbortOutput ()
 Set/Get an internal variable used to communicate between the algorithm and executive.
virtual void AbortOutputOn ()
 Set/Get an internal variable used to communicate between the algorithm and executive.
virtual void AbortOutputOff ()
 Set/Get an internal variable used to communicate between the algorithm and executive.
void SetProgressShiftScale (double shift, double scale)
 Specify the shift and scale values to use to apply to the progress amount when UpdateProgress is called.
virtual double GetProgressShift ()
 Specify the shift and scale values to use to apply to the progress amount when UpdateProgress is called.
virtual double GetProgressScale ()
 Specify the shift and scale values to use to apply to the progress amount when UpdateProgress is called.
void SetProgressText (const char *ptext)
 Set the current text message associated with the progress state.
virtual char * GetProgressText ()
 Set the current text message associated with the progress state.
virtual unsigned long GetErrorCode ()
 The error code contains a possible error that occurred while reading or writing the file.
void SetInputArrayToProcess (const char *name, int fieldAssociation, int component=vtkArrayComponents::AllComponents)
 Set the input data arrays that this algorithm will process.
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 Set the input data arrays that this algorithm will process.
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name, int component)
 This method variant also accepts a component to consider rather than the entire tuple.
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 Set the input data arrays that this algorithm will process.
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType, int component)
 This method variant also accepts a component to consider rather than the entire tuple.
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 Set the input data arrays that this algorithm will process.
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName, const char *component)
 Set the input data arrays that this algorithm will process.
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 Set the connection for the given input port index.
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 Set the connection for the given input port index.
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 Add a connection to the given input port index.
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 Add a connection to the given input port index.
virtual bool Update (int port)
 Bring this algorithm's outputs up-to-date.
virtual bool Update ()
 Bring this algorithm's outputs up-to-date.
virtual void SetReleaseDataFlag (vtkTypeBool)
 Turn release data flag on or off for all output ports.
virtual vtkTypeBool GetReleaseDataFlag ()
 Turn release data flag on or off for all output ports.
void ReleaseDataFlagOn ()
 Turn release data flag on or off for all output ports.
void ReleaseDataFlagOff ()
 Turn release data flag on or off for all output ports.
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 This detects when the UpdateExtent will generate no data This condition is satisfied when the UpdateExtent has zero volume (0,-1,...) or the UpdateNumberOfPieces is 0.
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 This detects when the UpdateExtent will generate no data This condition is satisfied when the UpdateExtent has zero volume (0,-1,...) or the UpdateNumberOfPieces is 0.
int * GetUpdateExtent ()
 These functions return the update extent for output ports that use 3D extents.
int * GetUpdateExtent (int port)
 These functions return the update extent for output ports that use 3D extents.
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 These functions return the update extent for output ports that use 3D extents.
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 These functions return the update extent for output ports that use 3D extents.
void GetUpdateExtent (int extent[6])
 These functions return the update extent for output ports that use 3D extents.
void GetUpdateExtent (int port, int extent[6])
 These functions return the update extent for output ports that use 3D extents.
int GetUpdatePiece ()
 These functions return the update extent for output ports that use piece extents.
int GetUpdatePiece (int port)
 These functions return the update extent for output ports that use piece extents.
int GetUpdateNumberOfPieces ()
 These functions return the update extent for output ports that use piece extents.
int GetUpdateNumberOfPieces (int port)
 These functions return the update extent for output ports that use piece extents.
int GetUpdateGhostLevel ()
 These functions return the update extent for output ports that use piece extents.
int GetUpdateGhostLevel (int port)
 These functions return the update extent for output ports that use piece extents.
void SetProgressObserver (vtkProgressObserver *)
 If an ProgressObserver is set, the algorithm will report progress through it rather than directly.
virtual vtkProgressObserver * GetProgressObserver ()
 If an ProgressObserver is set, the algorithm will report progress through it rather than directly.
void SetNoPriorTemporalAccessInformationKey (int key)
 Set to all output ports of this algorithm the information key vtkStreamingDemandDrivenPipeline::NO_PRIOR_TEMPORAL_ACCESS().
void SetNoPriorTemporalAccessInformationKey ()
 Set to all output ports of this algorithm the information key vtkStreamingDemandDrivenPipeline::NO_PRIOR_TEMPORAL_ACCESS().
Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
virtual void DebugOn ()
 Turn debugging output on.
virtual void DebugOff ()
 Turn debugging output off.
bool GetDebug ()
 Get the value of the debug flag.
void SetDebug (bool debugFlag)
 Set the value of the debug flag.
virtual void Modified ()
 Update the modification time for this object.
virtual vtkMTimeType GetMTime ()
 Return this object's modified time.
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
vtkTypeBool HasObserver (unsigned long event)
vtkTypeBool HasObserver (const char *event)
vtkTypeBool InvokeEvent (unsigned long event)
vtkTypeBool InvokeEvent (const char *event)
std::string GetObjectDescription () const override
 The object description printed in messages and PrintSelf output.
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
vtkCommand * GetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
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.
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.
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.
vtkTypeBool InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not.
vtkTypeBool InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not.
virtual void SetObjectName (const std::string &objectName)
 Set/get the name of this object for reporting purposes.
virtual std::string GetObjectName () const
 Set/get the name of this object for reporting purposes.
Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string.
virtual vtkIdType GetNumberOfGenerationsFromBase (const char *name)
 Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
virtual void Delete ()
 Delete a VTK object.
virtual void FastDelete ()
 Delete a reference to this object.
void InitializeObjectBase ()
void Print (ostream &os)
 Print an object to an ostream.
void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object).
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object).
int GetReferenceCount ()
 Return the current reference count of this object.
void SetReferenceCount (int)
 Sets the reference count.
bool GetIsInMemkind () const
 A local state flag that remembers whether this object lives in the normal or extended memory space.
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses.
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses.

Static Public Member Functions

static vtkResolveHangingNodes * New ()
static vtkTypeBool IsTypeOf (const char *type)
static vtkResolveHangingNodes * SafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkDataObjectAlgorithm
static vtkDataObjectAlgorithm * New ()
static vtkTypeBool IsTypeOf (const char *type)
static vtkDataObjectAlgorithm * SafeDownCast (vtkObjectBase *o)
Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithm * New ()
static vtkTypeBool IsTypeOf (const char *type)
static vtkAlgorithm * SafeDownCast (vtkObjectBase *o)
static vtkInformationIntegerKey * INPUT_IS_OPTIONAL ()
 Keys used to specify input port requirements.
static vtkInformationIntegerKey * INPUT_IS_REPEATABLE ()
static vtkInformationInformationVectorKey * INPUT_REQUIRED_FIELDS ()
static vtkInformationStringVectorKey * INPUT_REQUIRED_DATA_TYPE ()
static vtkInformationInformationVectorKey * INPUT_ARRAYS_TO_PROCESS ()
static vtkInformationIntegerKey * INPUT_PORT ()
static vtkInformationIntegerKey * INPUT_CONNECTION ()
static vtkInformationIntegerKey * CAN_PRODUCE_SUB_EXTENT ()
 This key tells the executive that a particular output port is capable of producing an arbitrary subextent of the whole extent.
static vtkInformationIntegerKey * CAN_HANDLE_PIECE_REQUEST ()
 Key that tells the pipeline that a particular algorithm can or cannot handle piece request.
static vtkInformationIntegerKey * ABORTED ()
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 If the DefaultExecutivePrototype is set, a copy of it is created in CreateDefaultExecutive() using NewInstance().
Static Public Member Functions inherited from vtkObject
static vtkObject * New ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
static void BreakOnError ()
 This method is called when vtkErrorMacro executes.
static void SetGlobalWarningDisplay (vtkTypeBool val)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
static vtkTypeBool GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
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.
static vtkIdType GetNumberOfGenerationsFromBaseType (const char *name)
 Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
static vtkObjectBase * New ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
static void SetMemkindDirectory (const char *directoryname)
 The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
static bool GetUsingMemkind ()
 A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkResolveHangingNodes ()=default
 ~vtkResolveHangingNodes () override=default
int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int FillInputPortInformation (int port, vtkInformation *info) override
 Fill the input port information objects for this algorithm.
int RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 This is called by the superclass.
virtual bool UseRemotePoints ()
 Whether the points of the partitions of other processes are needed to resolve the boundary of the local partitions, see GetRemotePoints().
virtual void GetGlobalMeasureRange (double range[2], int &dimension)
 Called with the range (min, max) of the measures of the candidate cells of the local partitions, and the dimension of the cells (2, 3, or 0 without cells), which it may replace by the ones of the whole data set.
virtual std::vector< vtkSmartPointer< vtkPolyData > > GetRemotePoints (const std::vector< vtkPolyData * > &boundaries, const std::vector< int > &partitionedDataSetIds)
 Called with the true boundary of every local partition: the edges (2D) or faces (3D) without neighbor that no point of the partition splits, as lines or quads, with their end points and point data, or nullptr if there is none.
virtual void GetCentroidGlobalIdsOffset (vtkIdType &maxGlobalId, vtkIdType numberOfCentroidPoints, vtkIdType &offset, vtkIdType &totalNumberOfCentroidPoints)
 Called with the largest point global id of the local partitions, -1 without point global ids, and the number of center points of the local partitions with point global ids (see Decompose), which get new global ids after the largest one of all the processes.
vtkSmartPointer< vtkPolyData > MergeReceivedPoints (const std::map< int, vtkSmartPointer< vtkPolyData > > &received, vtkPolyData *reference) const
 Helper for GetRemotePoints(): merge the points received from other partitions, by partition id, in one point set.
Protected Member Functions inherited from vtkDataObjectAlgorithm
 vtkDataObjectAlgorithm ()
 ~vtkDataObjectAlgorithm () override
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 This is called by the superclass.
virtual int RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int FillOutputPortInformation (int port, vtkInformation *info) override
 Fill the output port information objects for this algorithm.
Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 ~vtkAlgorithm () override
bool CheckUpstreamAbort ()
 Checks to see if an upstream filter has been aborted.
virtual void SetNumberOfInputPorts (int n)
 Set the number of input ports used by the algorithm.
virtual void SetNumberOfOutputPorts (int n)
 Set the number of output ports provided by the algorithm.
int InputPortIndexInRange (int index, const char *action)
int OutputPortIndexInRange (int index, const char *action)
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 Get the association of the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
int GetInputArrayComponent (int idx)
 Get the component to process of the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
vtkInformation * GetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 This method takes in an index (as specified in SetInputArrayToProcess) and a pipeline information vector.
virtual vtkExecutive * CreateDefaultExecutive ()
 Create a default executive.
void ReportReferences (vtkGarbageCollector *) override
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 Replace the Nth connection on the given input port.
virtual void SetNumberOfInputConnections (int port, int n)
 Set the number of input connections on the given input port.
void SetInputDataInternal (int port, vtkDataObject *input)
 These methods are used by subclasses to implement methods to set data objects directly as input.
void AddInputDataInternal (int port, vtkDataObject *input)
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 Filters that have multiple connections on one port can use this signature.
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 Filters that have multiple connections on one port can use this signature.
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 Get the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 Get the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 Filters that have multiple connections on one port can use this signature.
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 Filters that have multiple connections on one port can use this signature.
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input)
 Filters that have multiple connections on one port can use this signature.
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 Filters that have multiple connections on one port can use this signature.
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 Get the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 Get the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 Filters that have multiple connections on one port can use this signature.
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 Filters that have multiple connections on one port can use this signature.
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 Filters that have multiple connections on one port can use this signature.
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 Filters that have multiple connections on one port can use this signature.
vtkSmartPointer< vtkAbstractArray > GetInputArray (int idx, int connection, vtkInformationVector **inputVector, int &association, int requestedComponent=vtkArrayComponents::Requested)
 Get an array from the input at index idx.
vtkSmartPointer< vtkAbstractArray > GetInputArray (int idx, vtkDataObject *input, int &association, int requestedComponent=vtkArrayComponents::Requested)
 Get an array from the input at index idx.
template<typename ArrayType, typename... Params>
vtkSmartPointer< ArrayType > GetInputArrayAs (Params &&... params)
 Get an array from the input at index idx.
virtual void SetErrorCode (unsigned long)
 The error code contains a possible error that occurred while reading or writing the file.
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=nullptr)
 These methods allow a command to exclusively grab all events.
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events.
Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Static Protected Member Functions

static vtkBoundingBox GetBoundaryBounds (vtkPolyData *boundary, double tolerance)
 Helper for the exchange of points between partitions: the bounds of the true boundary boundary of a partition (see GetRemotePoints()), inflated by tolerance times their diagonal, so that the points within the tolerance of the boundary are not missed.
static void BinBoundaryElements (BoundaryBins &bins, vtkPolyData *boundary, double tolerance)
 Helper for the exchange of points between partitions: bin the boundary elements of boundary (its cells, see GetRemotePoints()), marking the bins that their bounds overlap, as vtkStaticCellLocator does with the bounds of the cells.
static vtkSmartPointer< vtkPolyData > ExtractPointsInBins (vtkPolyData *source, const BoundaryBins &bins)
 Helper for the exchange of points between partitions: the points of the boundary source of a partition that are in the occupied bins of a neighbor, with their point data, as a vtkPolyData without cells.
Static Protected Member Functions inherited from vtkDataObjectAlgorithm
static bool SetOutputDataObject (int dataType, vtkInformation *outputInformation, bool exact=false)
 A helper method that can be used by subclasses in RequestDataObject to create an output data object of the given type if not already present.
Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKey * PORT_REQUIREMENTS_FILLED ()
Static Protected Member Functions inherited from vtkObjectBase
static vtkMallocingFunction GetCurrentMallocFunction ()
static vtkReallocingFunction GetCurrentReallocFunction ()
static vtkFreeingFunction GetCurrentFreeFunction ()
static vtkFreeingFunction GetAlternateFreeFunction ()

Protected Attributes

double Tolerance = 1e-6
int NumberOfLevels = 0
bool Decompose = true
bool ComputeInverseMeasure = false
bool PassThroughCellIds = false
std::string OriginalCellIdsName = "vtkOriginalResolvedCellIds"
Protected Attributes inherited from vtkAlgorithm
vtkTimeStamp LastAbortCheckTime
vtkInformation * Information
double Progress
char * ProgressText
vtkProgressObserver * ProgressObserver
unsigned long ErrorCode
 The error code contains a possible error that occurred while reading or writing the file.
Protected Attributes inherited from vtkObject
bool Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
std::string ObjectName
Protected Attributes inherited from vtkObjectBase
std::atomic< int32_t > ReferenceCount
vtkWeakPointerBase ** WeakPointers

Additional Inherited Members

Public Attributes inherited from vtkAlgorithm
std::atomic< vtkTypeBool > AbortExecute
Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutive * DefaultExecutivePrototype

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkResolveHangingNodes()

vtkResolveHangingNodes::vtkResolveHangingNodes ( )
protecteddefault

◆ ~vtkResolveHangingNodes()

vtkResolveHangingNodes::~vtkResolveHangingNodes ( )
overrideprotecteddefault

Member Function Documentation

◆ New()

vtkResolveHangingNodes * vtkResolveHangingNodes::New ( )
static

◆ IsTypeOf()

vtkTypeBool vtkResolveHangingNodes::IsTypeOf ( const char * type)
static

◆ IsA()

virtual vtkTypeBool vtkResolveHangingNodes::IsA ( const char * name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkDataObjectAlgorithm.

Reimplemented in vtkPResolveHangingNodes.

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkResolveHangingNodes::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkDataObjectAlgorithm.

Reimplemented in vtkPResolveHangingNodes.

◆ NewInstance()

vtkResolveHangingNodes * vtkResolveHangingNodes::NewInstance ( ) const

◆ PrintSelf()

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

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkDataObjectAlgorithm.

◆ SetTolerance()

virtual void vtkResolveHangingNodes::SetTolerance ( double )
virtual

Tolerance to decide whether a point lies on an edge or face, as a fraction of the length of the edge or of the diagonal of the face.

It is clamped to [0, 0.1]. Default is 1e-6.

◆ GetTolerance()

virtual double vtkResolveHangingNodes::GetTolerance ( )
virtual

Tolerance to decide whether a point lies on an edge or face, as a fraction of the length of the edge or of the diagonal of the face.

It is clamped to [0, 0.1]. Default is 1e-6.

◆ GetNumberOfLevels()

virtual int vtkResolveHangingNodes::GetNumberOfLevels ( )
virtual

Number of refinement levels of the mesh, computed by the last execution: the largest one over the vtkPartitionedDataSet of a vtkPartitionedDataSetCollection.

It is 0 without candidate cells.

◆ SetDecompose()

virtual void vtkResolveHangingNodes::SetDecompose ( bool )
virtual

Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).

Default is true.

◆ GetDecompose()

virtual bool vtkResolveHangingNodes::GetDecompose ( )
virtual

Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).

Default is true.

◆ DecomposeOn()

virtual void vtkResolveHangingNodes::DecomposeOn ( )
virtual

Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).

Default is true.

◆ DecomposeOff()

virtual void vtkResolveHangingNodes::DecomposeOff ( )
virtual

Option to decompose each cell with hanging points into conforming triangles and quads (2D) or tetrahedra and pyramids (3D), instead of turning it into a single polygon (2D) or polyhedron (3D).

Default is true.

◆ SetComputeInverseMeasure()

virtual void vtkResolveHangingNodes::SetComputeInverseMeasure ( bool )
virtual

Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).

Default is false.

◆ GetComputeInverseMeasure()

virtual bool vtkResolveHangingNodes::GetComputeInverseMeasure ( )
virtual

Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).

Default is false.

◆ ComputeInverseMeasureOn()

virtual void vtkResolveHangingNodes::ComputeInverseMeasureOn ( )
virtual

Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).

Default is false.

◆ ComputeInverseMeasureOff()

virtual void vtkResolveHangingNodes::ComputeInverseMeasureOff ( )
virtual

Option to add an "InverseArea" (2D) or "InverseVolume" (3D) cell array to the output, the inverse of the measure of each cell, to weight the interpolation of cell data to points (see vtkCellDataToPointData::SetEnableWeightedAverage).

Default is false.

◆ SetPassThroughCellIds()

virtual void vtkResolveHangingNodes::SetPassThroughCellIds ( bool )
virtual

Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.

Default is false.

◆ GetPassThroughCellIds()

virtual bool vtkResolveHangingNodes::GetPassThroughCellIds ( )
virtual

Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.

Default is false.

◆ PassThroughCellIdsOn()

virtual void vtkResolveHangingNodes::PassThroughCellIdsOn ( )
virtual

Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.

Default is false.

◆ PassThroughCellIdsOff()

virtual void vtkResolveHangingNodes::PassThroughCellIdsOff ( )
virtual

Option to add a cell array, named OriginalCellIdsName, to the output, with the id of the input cell of every output cell, in its partition: several output cells have the same input cell when Decompose is true.

Default is false.

◆ vtkSetStdStringFromCharMacro()

vtkResolveHangingNodes::vtkSetStdStringFromCharMacro ( OriginalCellIdsName )

The name of the cell array of PassThroughCellIds.

Default is "vtkOriginalResolvedCellIds".

◆ vtkGetCharFromStdStringMacro()

vtkResolveHangingNodes::vtkGetCharFromStdStringMacro ( OriginalCellIdsName )

The name of the cell array of PassThroughCellIds.

Default is "vtkOriginalResolvedCellIds".

◆ RequestData()

int vtkResolveHangingNodes::RequestData ( vtkInformation * request,
vtkInformationVector ** inputVector,
vtkInformationVector * outputVector )
overrideprotectedvirtual

Reimplemented from vtkDataObjectAlgorithm.

◆ FillInputPortInformation()

int vtkResolveHangingNodes::FillInputPortInformation ( int port,
vtkInformation * info )
overrideprotectedvirtual

Fill the input port information objects for this algorithm.

This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkDataObjectAlgorithm.

◆ RequestDataObject()

int vtkResolveHangingNodes::RequestDataObject ( vtkInformation * ,
vtkInformationVector ** ,
vtkInformationVector *  )
overrideprotectedvirtual

This is called by the superclass.

This is the method you should override.

Reimplemented from vtkDataObjectAlgorithm.

◆ UseRemotePoints()

virtual bool vtkResolveHangingNodes::UseRemotePoints ( )
inlineprotectedvirtual

Whether the points of the partitions of other processes are needed to resolve the boundary of the local partitions, see GetRemotePoints().

The default is false. It must return the same value on all the processes.

Reimplemented in vtkPResolveHangingNodes.

Definition at line 216 of file vtkResolveHangingNodes.h.

◆ GetGlobalMeasureRange()

virtual void vtkResolveHangingNodes::GetGlobalMeasureRange ( double range[2],
int & dimension )
inlineprotectedvirtual

Called with the range (min, max) of the measures of the candidate cells of the local partitions, and the dimension of the cells (2, 3, or 0 without cells), which it may replace by the ones of the whole data set.

The default does nothing. Subclasses working on distributed data reduce them over all the processes, so that they agree on the number of levels. It is called on all the processes, even on those without cells.

Reimplemented in vtkPResolveHangingNodes.

Definition at line 225 of file vtkResolveHangingNodes.h.

◆ GetRemotePoints()

virtual std::vector< vtkSmartPointer< vtkPolyData > > vtkResolveHangingNodes::GetRemotePoints ( const std::vector< vtkPolyData * > & boundaries,
const std::vector< int > & partitionedDataSetIds )
protectedvirtual

Called with the true boundary of every local partition: the edges (2D) or faces (3D) without neighbor that no point of the partition splits, as lines or quads, with their end points and point data, or nullptr if there is none.

Returns, for every partition, the points of the other partitions that may lie on its boundary, with their point data, which must have the same arrays as the point data of the partition (see MergeReceivedPoints()), or nullptr if there is none. The default exchanges the points between the local partitions: the partitions whose boundary bounds overlap are neighbors, and every partition receives the points of its neighbors that are in the bins its boundary occupies (see BoundaryBins). partitionedDataSetIds tells, for every partition, which partitions it is resolved with, the same way on all the processes:

It is called if there are several local partitions with cells or if UseRemotePoints() is true, then on all the processes, even on those without cells, unless no process has candidate cells.

Reimplemented in vtkPResolveHangingNodes.

◆ GetCentroidGlobalIdsOffset()

virtual void vtkResolveHangingNodes::GetCentroidGlobalIdsOffset ( vtkIdType & maxGlobalId,
vtkIdType numberOfCentroidPoints,
vtkIdType & offset,
vtkIdType & totalNumberOfCentroidPoints )
inlineprotectedvirtual

Called with the largest point global id of the local partitions, -1 without point global ids, and the number of center points of the local partitions with point global ids (see Decompose), which get new global ids after the largest one of all the processes.

Sets maxGlobalId to the largest point global id of all the processes, offset to the number of these center points on the processes of lower rank, so that the new global ids are unique, and totalNumberOfCentroidPoints to their number on all the processes. The default, for a single process, keeps maxGlobalId, sets offset to 0 and totalNumberOfCentroidPoints to numberOfCentroidPoints. It is called if Decompose is true, on all the processes, even on those without cells, unless no process has candidate cells.

Reimplemented in vtkPResolveHangingNodes.

Definition at line 261 of file vtkResolveHangingNodes.h.

◆ GetBoundaryBounds()

vtkBoundingBox vtkResolveHangingNodes::GetBoundaryBounds ( vtkPolyData * boundary,
double tolerance )
staticprotected

Helper for the exchange of points between partitions: the bounds of the true boundary boundary of a partition (see GetRemotePoints()), inflated by tolerance times their diagonal, so that the points within the tolerance of the boundary are not missed.

They are invalid without boundary points.

◆ BinBoundaryElements()

void vtkResolveHangingNodes::BinBoundaryElements ( BoundaryBins & bins,
vtkPolyData * boundary,
double tolerance )
staticprotected

Helper for the exchange of points between partitions: bin the boundary elements of boundary (its cells, see GetRemotePoints()), marking the bins that their bounds overlap, as vtkStaticCellLocator does with the bounds of the cells.

The bounds of each element are inflated by tolerance times their diagonal, as the points that lie on an element are within tolerance times its size from it. Without cells, all the bins are occupied.

◆ ExtractPointsInBins()

vtkSmartPointer< vtkPolyData > vtkResolveHangingNodes::ExtractPointsInBins ( vtkPolyData * source,
const BoundaryBins & bins )
staticprotected

Helper for the exchange of points between partitions: the points of the boundary source of a partition that are in the occupied bins of a neighbor, with their point data, as a vtkPolyData without cells.

◆ MergeReceivedPoints()

vtkSmartPointer< vtkPolyData > vtkResolveHangingNodes::MergeReceivedPoints ( const std::map< int, vtkSmartPointer< vtkPolyData > > & received,
vtkPolyData * reference ) const
protected

Helper for GetRemotePoints(): merge the points received from other partitions, by partition id, in one point set.

reference is the true boundary of the partition that receives them: the received points must have point data arrays with the same names and numbers of components, in the same order, otherwise they are ignored, with a warning. Their numeric types may differ, e.g., after a serialization, which turns char into signed char: they are converted. Returns nullptr if there is none.

Member Data Documentation

◆ Tolerance

double vtkResolveHangingNodes::Tolerance = 1e-6
protected

Definition at line 352 of file vtkResolveHangingNodes.h.

◆ NumberOfLevels

int vtkResolveHangingNodes::NumberOfLevels = 0
protected

Definition at line 353 of file vtkResolveHangingNodes.h.

◆ Decompose

bool vtkResolveHangingNodes::Decompose = true
protected

Definition at line 354 of file vtkResolveHangingNodes.h.

◆ ComputeInverseMeasure

bool vtkResolveHangingNodes::ComputeInverseMeasure = false
protected

Definition at line 355 of file vtkResolveHangingNodes.h.

◆ PassThroughCellIds

bool vtkResolveHangingNodes::PassThroughCellIds = false
protected

Definition at line 356 of file vtkResolveHangingNodes.h.

◆ OriginalCellIdsName

std::string vtkResolveHangingNodes::OriginalCellIdsName = "vtkOriginalResolvedCellIds"
protected

Definition at line 357 of file vtkResolveHangingNodes.h.


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