MeshLib C++ Docs
Loading...
Searching...
No Matches
MRToolPath.h File Reference
#include "MRVoxelsFwd.h"
#include "MRMesh/MRAxis.h"
#include "MRMesh/MRMesh.h"
#include "MRMesh/MRPolyline.h"
#include "MRMesh/MRProgressCallback.h"
#include "MRMesh/MRExpected.h"

Go to the source code of this file.

Classes

struct  MR::ToolPathParams
 Parameters shared by all tool path generation functions. More...
struct  MR::ConstantCuspParams
 Tool path parameters specific to the constant-cusp strategy. More...
struct  MR::LineInterpolationParams
 Tolerance parameters for linear interpolation of tool path segments. More...
struct  MR::ArcInterpolationParams
 Tolerance parameters for arc interpolation of tool path segments. More...
struct  MR::GCommand
 A single G-code move command. More...
struct  MR::ToolPathResult
 Result of a tool path computation. More...

Namespaces

namespace  MR
 only for bindings generation

Enumerations

enum class  MR::BypassDirection { MR::BypassDirection::Clockwise , MR::BypassDirection::CounterClockwise }
 Direction in which the tool traverses each contour. More...
enum class  MR::MoveType {
  MR::MoveType::None = -1 , MR::MoveType::FastLinear = 0 , MR::MoveType::Linear = 1 , MR::MoveType::ArcCW = 2 ,
  MR::MoveType::ArcCCW = 3
}
 G-code move command type. More...
enum class  MR::ArcPlane { MR::ArcPlane::None = -1 , MR::ArcPlane::XY = 17 , MR::ArcPlane::XZ = 18 , MR::ArcPlane::YZ = 19 }
 G-code arc plane selection. More...

Functions

Expected< ToolPathResultMR::constantZToolPath (const MeshPart &mp, const ToolPathParams &params)
Expected< ToolPathResultMR::lacingToolPath (const MeshPart &mp, const ToolPathParams &params, Axis cutDirection)
Expected< ToolPathResultMR::constantCuspToolPath (const MeshPart &mp, const ConstantCuspParams &params)
std::shared_ptr< ObjectGcodeMR::exportToolPathToGCode (const std::vector< GCommand > &commands)
Expected< void > MR::interpolateLines (std::vector< GCommand > &commands, const LineInterpolationParams &params, Axis axis)
Expected< void > MR::interpolateArcs (std::vector< GCommand > &commands, const ArcInterpolationParams &params, Axis axis)
FaceBitSet MR::smoothSelection (Mesh &mesh, const FaceBitSet &region, float expandOffset, float shrinkOffset)