40 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning 41 #include <vtkPolyData.h> 42 #include <vtkSmartPointer.h> 43 #include "SmartPointers.hpp" 44 #include "ChastePoint.hpp" 45 #include "UblasVectorInclude.hpp" 46 #include "DimensionalChastePoint.hpp" 47 #include "Polygon.hpp" 49 #include "VesselNetwork.hpp" 50 #include "DimensionalChastePoint.hpp" 51 #include "UnitCollection.hpp" 52 #include "GeometryWriter.hpp" 59 template<
unsigned DIM>
65 std::vector<boost::shared_ptr<Facet<DIM> > >
mFacets;
103 static boost::shared_ptr<Part<DIM> >
Create();
117 boost::shared_ptr<Polygon<DIM> >
AddCircle(units::quantity<unit::length> radius,
119 unsigned numSegments = 24);
129 unsigned numSegments = 24);
138 void AddCuboid(units::quantity<unit::length> sizeX,
139 units::quantity<unit::length> sizeY,
140 units::quantity<unit::length> sizeZ,
158 bool newFacet =
false,
169 bool newFacet =
false,
179 boost::shared_ptr<Polygon<DIM> >
AddRectangle(units::quantity<unit::length> sizeX,
180 units::quantity<unit::length> sizeY,
201 void Extrude(boost::shared_ptr<
Polygon<DIM> > pPolygon, units::quantity<unit::length> distance);
217 std::vector<unsigned>
GetContainingGridIndices(
unsigned num_x,
unsigned num_y,
unsigned num_z, units::quantity<unit::length> spacing);
229 std::vector<boost::shared_ptr<Facet<DIM> > >
GetFacets();
242 std::vector<boost::shared_ptr<Polygon<DIM> > >
GetPolygons();
260 std::vector<boost::shared_ptr<DimensionalChastePoint<DIM> > >
GetVertices();
272 vtkSmartPointer<vtkPolyData>
GetVtk();
void SetReferenceLengthScale(units::quantity< unit::length > referenceLength)
std::vector< unsigned > GetContainingGridIndices(unsigned num_x, unsigned num_y, unsigned num_z, units::quantity< unit::length > spacing)
void MergeCoincidentVertices()
vtkSmartPointer< vtkPolyData > GetVtk()
std::vector< DimensionalChastePoint< DIM > > mRegionMarkers
void BooleanWithNetwork(boost::shared_ptr< VesselNetwork< DIM > > pVesselNetwork)
boost::shared_ptr< Facet< DIM > > GetFacet(const DimensionalChastePoint< DIM > &rLocation)
bool IsPointInPart(DimensionalChastePoint< DIM > location)
void AddCylinder(units::quantity< unit::length > radius, units::quantity< unit::length > depth, DimensionalChastePoint< DIM > centre, unsigned numSegments=24)
boost::shared_ptr< Polygon< DIM > > AddRectangle(units::quantity< unit::length > sizeX, units::quantity< unit::length > sizeY, DimensionalChastePoint< DIM > origin)
std::vector< DimensionalChastePoint< DIM > > GetVertexLocations()
std::vector< std::pair< unsigned, unsigned > > GetSegmentIndices()
std::vector< DimensionalChastePoint< DIM > > GetHoleMarkers()
std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > GetVertices()
std::vector< boost::shared_ptr< Facet< DIM > > > GetFacets()
void Write(const std::string &rFilename, GeometryFormat::Value format=GeometryFormat::VTP)
units::quantity< unit::length > mReferenceLength
void Extrude(boost::shared_ptr< Polygon< DIM > > pPolygon, units::quantity< unit::length > distance)
void AddCuboid(units::quantity< unit::length > sizeX, units::quantity< unit::length > sizeY, units::quantity< unit::length > sizeZ, DimensionalChastePoint< DIM > origin)
std::vector< boost::shared_ptr< Facet< DIM > > > mFacets
std::vector< DimensionalChastePoint< DIM > > mHoleMarkers
void Translate(DimensionalChastePoint< DIM > vector)
boost::shared_ptr< Polygon< DIM > > AddPolygon(std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > vertices, bool newFacet=false, boost::shared_ptr< Facet< DIM > > pFacet=boost::shared_ptr< Facet< DIM > >())
units::quantity< unit::length > GetReferenceLengthScale()
boost::shared_ptr< Polygon< DIM > > AddCircle(units::quantity< unit::length > radius, DimensionalChastePoint< DIM > centre, unsigned numSegments=24)
vtkSmartPointer< vtkPolyData > mVtkPart
std::vector< boost::shared_ptr< Polygon< DIM > > > GetPolygons()
std::vector< units::quantity< unit::length > > GetBoundingBox()
static boost::shared_ptr< Part< DIM > > Create()
void AddVesselNetwork(boost::shared_ptr< VesselNetwork< DIM > > pVesselNetwork, bool surface=false)
void AddHoleMarker(DimensionalChastePoint< DIM > location)