|
VMTK
|
Creates a reference system consisting of a radius and normals on top of boundaries. More...
#include <vtkvmtkBoundaryReferenceSystems.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkBoundaryReferenceSystems * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetBoundaryRadiusArrayName (const char *) |
| virtual char * | GetBoundaryRadiusArrayName () |
| virtual void | SetBoundaryNormalsArrayName (const char *) |
| virtual char * | GetBoundaryNormalsArrayName () |
| virtual void | SetPoint1ArrayName (const char *) |
| virtual char * | GetPoint1ArrayName () |
| virtual void | SetPoint2ArrayName (const char *) |
| virtual char * | GetPoint2ArrayName () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkBoundaryReferenceSystems * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkBoundaryReferenceSystems * | New () |
| static void | ComputeBoundaryBarycenter (vtkPoints *points, double barycenter[3]) |
| static double | ComputeBoundaryMeanRadius (vtkPoints *points, double barycenter[3]) |
| static void | ComputeBoundaryNormal (vtkPoints *points, double barycenter[3], double normal[3]) |
| static void | OrientBoundaryNormalOutwards (vtkPolyData *surface, vtkPolyData *boundaries, vtkIdType boundaryCellId, double normal[3], double outwardNormal[3]) |
| static void | ComputeReferenceSystemPoints (double origin[3], double normal[3], double radius, double point1[3], double point2[3]) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkBoundaryReferenceSystems () | |
| ~vtkvmtkBoundaryReferenceSystems () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
Protected Attributes | |
| char * | BoundaryRadiusArrayName |
| char * | BoundaryNormalsArrayName |
| char * | Point1ArrayName |
| char * | Point2ArrayName |
Creates a reference system consisting of a radius and normals on top of boundaries.
This class has methods to estimate the location of the boundary barycenter location, the boundary mean radius, and outward normals to the boundary.
As a filter, it takes a surface with open boundaries (e.g. the inlet/outlet caps removed) as input and outputs a vtkPolyData of vertex points, one per boundary, located at each boundary's origin, with the per-boundary radius/normal/in-plane reference points stored as point data arrays (see BoundaryRadiusArrayName, BoundaryNormalsArrayName, Point1ArrayName, Point2ArrayName). This is the filter behind the vmtkboundaryreferencesystems pype script; a typical use is specifying CFD boundary conditions at each inlet/outlet of a vascular model.
Definition at line 46 of file vtkvmtkBoundaryReferenceSystems.h.
| typedef vtkPolyDataAlgorithm vtkvmtkBoundaryReferenceSystems::Superclass |
Definition at line 49 of file vtkvmtkBoundaryReferenceSystems.h.
|
protected |
Definition at line 39 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
protected |
Definition at line 47 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkBoundaryReferenceSystems * vtkvmtkBoundaryReferenceSystems::NewInstance | ( | ) | const |
|
override |
Definition at line 376 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
static |
|
virtual |
Set/Get the name of the point data array (one 3-component tuple per output vertex/boundary) where the mean boundary radius is stored. Commonly named "BoundaryRadius".
|
virtual |
Set/Get the name of the point data array (one 3-component tuple per output vertex/boundary) where the mean boundary radius is stored. Commonly named "BoundaryRadius".
|
virtual |
Set/Get the name of the point data array where the outward-pointing normal to each boundary plane is stored. Commonly named "BoundaryNormals".
|
virtual |
Set/Get the name of the point data array where the outward-pointing normal to each boundary plane is stored. Commonly named "BoundaryNormals".
|
virtual |
Set/Get the name of the point data array where the first in-plane reference point of each boundary is stored (together with the origin, defines an arbitrary x axis on the boundary plane; see ComputeReferenceSystemPoints). Commonly named "Point1".
|
virtual |
Set/Get the name of the point data array where the first in-plane reference point of each boundary is stored (together with the origin, defines an arbitrary x axis on the boundary plane; see ComputeReferenceSystemPoints). Commonly named "Point1".
|
virtual |
Set/Get the name of the point data array where the second in-plane reference point of each boundary is stored (together with the origin and Point1, fully defines the boundary plane's local coordinate frame; see ComputeReferenceSystemPoints). Commonly named "Point2".
|
virtual |
Set/Get the name of the point data array where the second in-plane reference point of each boundary is stored (together with the origin and Point1, fully defines the boundary plane's local coordinate frame; see ComputeReferenceSystemPoints). Commonly named "Point2".
|
static |
Compute the barycenter (mean position) of the given ordered boundary points.
Definition at line 74 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
static |
Compute the mean distance of the given boundary points from their barycenter.
Definition at line 113 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
static |
Compute a (non-normalized) normal to the plane best fitting the given boundary points, about their barycenter.
Definition at line 131 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
static |
Flip normal if needed so that it points away from the body of surface, and store the result in outwardNormal. boundaryCellId is the id, within boundaries, of the boundary polyline that normal was computed for.
Definition at line 170 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
static |
Given a boundary reference system (origin, normal, radius), compute two additional points, point1 and point2, lying on the boundary plane at the given radius from origin, such that (origin, point1) defines an arbitrary in-plane x axis and (origin, point1, point2) defines the boundary plane – used to fully pin down a local coordinate frame at each boundary (e.g. for specifying CFD boundary conditions).
Definition at line 244 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
overrideprotectedvirtual |
Definition at line 268 of file vtkvmtkBoundaryReferenceSystems.cxx.
|
protected |
Definition at line 134 of file vtkvmtkBoundaryReferenceSystems.h.
|
protected |
Definition at line 135 of file vtkvmtkBoundaryReferenceSystems.h.
|
protected |
Definition at line 136 of file vtkvmtkBoundaryReferenceSystems.h.
|
protected |
Definition at line 137 of file vtkvmtkBoundaryReferenceSystems.h.