aboutsummaryrefslogtreecommitdiff
path: root/mayaPlug/shaveCutCtx.cpp
diff options
context:
space:
mode:
authorBen Marsh <[email protected]>2019-10-22 09:07:59 -0400
committerBen Marsh <[email protected]>2019-10-22 09:07:59 -0400
commitbd0027e737c6512397f841c22786274ed74b927f (patch)
treef7ffbdb8f3741bb7f24635616cc189cba5cb865c /mayaPlug/shaveCutCtx.cpp
downloadshave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz
shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip
Adding Shave-and-a-Haircut 9.6
Diffstat (limited to 'mayaPlug/shaveCutCtx.cpp')
-rw-r--r--mayaPlug/shaveCutCtx.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/mayaPlug/shaveCutCtx.cpp b/mayaPlug/shaveCutCtx.cpp
new file mode 100644
index 0000000..3729886
--- /dev/null
+++ b/mayaPlug/shaveCutCtx.cpp
@@ -0,0 +1,46 @@
+// Shave and a Haircut
+// (c) 2019 Epic Games
+// US Patent 6720962
+
+#include <iostream>
+using namespace std;
+
+#include <maya/MPxContext.h>
+#include <maya/MString.h>
+
+#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;
+}
+