![]() |
Chaste
Build::
|
#include <VoronoiGenerator.hpp>
Collaboration diagram for VoronoiGenerator< DIM >:Public Member Functions | |
| VoronoiGenerator () | |
| ~VoronoiGenerator () | |
| boost::shared_ptr< Part< DIM > > | Generate (boost::shared_ptr< Part< DIM > > pPart, std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > seeds=std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > >(), unsigned numSeeds=100) |
Private Attributes | |
| units::quantity< unit::length > | mReferenceLength |
Generate a voronoi tesselation in the bounding box of a given part. If point seeds are not given generate them randomly.
Definition at line 50 of file VoronoiGenerator.hpp.
| VoronoiGenerator< DIM >::VoronoiGenerator | ( | ) |
Constructor
Definition at line 59 of file VoronoiGenerator.cpp.
| VoronoiGenerator< DIM >::~VoronoiGenerator | ( | ) |
Destructor
Definition at line 65 of file VoronoiGenerator.cpp.
| boost::shared_ptr< Part< DIM > > VoronoiGenerator< DIM >::Generate | ( | boost::shared_ptr< Part< DIM > > | pPart, |
| std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > | seeds = std::vector<boost::shared_ptr<DimensionalChastePoint<DIM> > >(), |
||
| unsigned | numSeeds = 100 |
||
| ) |
Generate a voronoi tesselation in the bounding box of the part
| pPart | the part to generate in |
| seeds | an optional collection of initial point seeds |
| numSeeds | the number of seed points, if initial seeds are not given. |
Definition at line 71 of file VoronoiGenerator.cpp.
References Polygon< DIM >::Create(), Part< DIM >::Create(), DimensionalChastePoint< DIM >::Create(), and VoronoiGenerator< DIM >::mReferenceLength.
Referenced by VesselNetworkGenerator< DIM >::SetReferenceLengthScale().
|
private |
The reference length scale
Definition at line 55 of file VoronoiGenerator.hpp.
Referenced by VoronoiGenerator< DIM >::Generate().