// Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 #include using namespace std; #include #include #include "shaveCutCtx.h" #include "shaveSDK.h" const MString shaveCutCtx::mCtxTypeName = "shaveCut"; shaveCutCtx::shaveCutCtx() { setTitleString("Shave Cut Tool"); setImage("shaveCut.xpm", MPxContext::kImage1); } shaveCutCtx::~shaveCutCtx() { } MStatus shaveCutCtx::strokeBegin( VERT& eyePoint, VERT& viewDir, VERT& upDir, VERT& screenPos, VERT& worldPos ) { SHAVEcut( eyePoint, viewDir, screenPos, worldPos ); // // We don't care about the rest of the stroke, so let the caller know // this by returning kEndOfFile. // return MS::kEndOfFile; }