Chaste
Build::
|
#include <NetworkToSurface.hpp>
Public Member Functions | |
NetworkToSurface () | |
~NetworkToSurface () | |
vtkSmartPointer< vtkPolyData > | GetSurface () |
vtkSmartPointer< vtkImageData > | GetSamplingImage () |
void | SetVesselNetwork (boost::shared_ptr< VesselNetwork< DIM > > pNetwork) |
void | SetResamplingSplineSize (units::quantity< unit::length > splineResampleSize) |
void | SetResamplingGridSize (units::quantity< unit::length > sampleGridSize) |
void | Update () |
Static Public Member Functions | |
static boost::shared_ptr< NetworkToSurface< DIM > > | Create () |
Private Attributes | |
boost::shared_ptr< VesselNetwork< DIM > > | mpNetwork |
units::quantity< unit::length > | mSamplingGridSpacing |
units::quantity< unit::length > | mSplineResamplingLength |
vtkSmartPointer< vtkPolyData > | mpSurface |
vtkSmartPointer< vtkImageData > | mpImage |
units::quantity< unit::length > | mReferenceLength |
This class generates a 2d or 3d triangulated surface from a vessel network (centrelines and radii). It works by sampling the network onto a regular grid, with points inside and outside vessels having different values. It then reconstructs and optionally smooths the surface. The surface does not necessarily have high quality triangles in 3d, they can be added using other tools such as the NetworkToSurface class.
Definition at line 55 of file NetworkToSurface.hpp.
NetworkToSurface< DIM >::NetworkToSurface | ( | ) |
Constructor
Definition at line 63 of file NetworkToSurface.cpp.
NetworkToSurface< DIM >::~NetworkToSurface | ( | ) |
Destructor
Definition at line 82 of file NetworkToSurface.cpp.
|
static |
Factory constructor method
Definition at line 75 of file NetworkToSurface.cpp.
vtkSmartPointer< vtkImageData > NetworkToSurface< DIM >::GetSamplingImage | ( | ) |
Return the sampling image
Definition at line 94 of file NetworkToSurface.cpp.
References NetworkToSurface< DIM >::mpImage.
vtkSmartPointer< vtkPolyData > NetworkToSurface< DIM >::GetSurface | ( | ) |
Return the vessel surface
Definition at line 88 of file NetworkToSurface.cpp.
References NetworkToSurface< DIM >::mpSurface.
void NetworkToSurface< DIM >::SetResamplingGridSize | ( | units::quantity< unit::length > | sampleGridSize | ) |
Set the re-sampling grid size
sampleGridSize | the resampling grid size |
Definition at line 112 of file NetworkToSurface.cpp.
References NetworkToSurface< DIM >::mSamplingGridSpacing.
void NetworkToSurface< DIM >::SetResamplingSplineSize | ( | units::quantity< unit::length > | splineResampleSize | ) |
Set the re-sampling spline length
splineResampleSize | the spline resampling size |
Definition at line 106 of file NetworkToSurface.cpp.
References NetworkToSurface< DIM >::mSplineResamplingLength.
void NetworkToSurface< DIM >::SetVesselNetwork | ( | boost::shared_ptr< VesselNetwork< DIM > > | pNetwork | ) |
Set the vessel network
pNetwork | the network to be converted to a surface |
Definition at line 100 of file NetworkToSurface.cpp.
References NetworkToSurface< DIM >::mpNetwork.
void NetworkToSurface< DIM >::Update | ( | ) |
Do the meshing
Definition at line 118 of file NetworkToSurface.cpp.
References NetworkToImage< DIM >::Create(), NetworkToSurface< DIM >::mpImage, NetworkToSurface< DIM >::mpNetwork, NetworkToSurface< DIM >::mpSurface, NetworkToSurface< DIM >::mReferenceLength, NetworkToSurface< DIM >::mSamplingGridSpacing, and NetworkToSurface< DIM >::mSplineResamplingLength.
|
private |
The sampling image, can be used for assigning region attributes and identifing holes during meshing.
Definition at line 80 of file NetworkToSurface.hpp.
Referenced by NetworkToSurface< DIM >::GetSamplingImage(), and NetworkToSurface< DIM >::Update().
|
private |
The vessel network
Definition at line 60 of file NetworkToSurface.hpp.
Referenced by NetworkToSurface< DIM >::SetVesselNetwork(), and NetworkToSurface< DIM >::Update().
|
private |
The surface
Definition at line 75 of file NetworkToSurface.hpp.
Referenced by NetworkToSurface< DIM >::GetSurface(), and NetworkToSurface< DIM >::Update().
|
private |
The reference length scale
Definition at line 85 of file NetworkToSurface.hpp.
Referenced by NetworkToSurface< DIM >::Update().
|
private |
The spacing of the sampling grid.
Definition at line 65 of file NetworkToSurface.hpp.
Referenced by NetworkToSurface< DIM >::SetResamplingGridSize(), and NetworkToSurface< DIM >::Update().
|
private |
The length for spline re-sampling
Definition at line 70 of file NetworkToSurface.hpp.
Referenced by NetworkToSurface< DIM >::SetResamplingSplineSize(), and NetworkToSurface< DIM >::Update().