1 #ifndef RAM_PATH_PLANNING_MESH_SLICER_HPP 2 #define RAM_PATH_PLANNING_MESH_SLICER_HPP 10 #include <vtkInteractorStyleTrackballCamera.h> 11 #include <vtkOBJReader.h> 12 #include <vtkPLYReader.h> 14 #include <vtkPolyDataMapper.h> 15 #include <vtkProperty.h> 16 #include <vtkRenderWindow.h> 17 #include <vtkRenderWindowInteractor.h> 18 #include <vtkRenderer.h> 19 #include <vtkSTLReader.h> 20 #include <vtkStripper.h> 21 #include <vtkTriangleFilter.h> 25 typedef vtkSmartPointer<vtkPolyData>
Polygon;
27 typedef std::vector<PolygonVector>
Layer;
30 const vtkSmartPointer<vtkPolyData> poly_data);
32 unsigned sliceMesh(std::vector<Layer> &trajectory,
33 const std::string file_name,
34 const vtkSmartPointer<vtkPolyData> poly_data,
35 vtkSmartPointer<vtkStripper> &stripper,
36 const double height_between_layers,
37 const std::array<double, 3> slicing_direction,
bool readPolygonFile(const std::string file_name, const vtkSmartPointer< vtkPolyData > poly_data)
unsigned sliceMesh(std::vector< Layer > &trajectory, const std::string file_name, const vtkSmartPointer< vtkPolyData > poly_data, vtkSmartPointer< vtkStripper > &stripper, const double height_between_layers, const std::array< double, 3 > slicing_direction, const bool use_gui=false)
std::vector< PolygonVector > Layer
vtkSmartPointer< vtkPolyData > Polygon
std::vector< Polygon > PolygonVector