-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRoadkillCmd.h
executable file
·67 lines (43 loc) · 1.42 KB
/
RoadkillCmd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <maya/MPxPolyTweakUVCommand.h>
#include <maya/MFnComponentListData.h>
#include <vector>
#include <WorkingMesh.h>
using namespace std;
//class MSyntax;
//class MArgDatabase;
//class MIntArray;
//class MFloatArray;
//class MObject;
#define kFunctionFlag "-f"
#define kFunctionFlagLong "-function"
#define kScaleFlag "-s"
#define kScaleFlagLong "-scale"
#define kUprightFlag "-u"
#define kUprightFlagLong "-upright"
#define kInOneFlag "-i"
#define kInOneFlagLong "-inone"
//#define kIslandMatchFlag "-m"
//#define kIslandMatchFlagLong "-match"
//#define kIslandEdgeMatchFlag "-e"
//#define kIslandEdgeMatchFlagLong "-edge"
class RoadkillCmd : public MPxPolyTweakUVCommand
{
public:
RoadkillCmd();
~RoadkillCmd();
static void *creator();
static MSyntax newSyntax();
bool isUndoable() const;
MStatus parseSyntax(MArgDatabase &argData);
// MStatus getTweakedUVs(const MFnMesh & mesh, MIntArray & uvList, MFloatArray & uPos, MFloatArray & vPos);
MStatus getTweakedUVs(const MObject & mesh, MIntArray & uvList, MFloatArray & uPos, MFloatArray & vPos);
void Setup();
private:
// void UnwrapMesh(WorkingMesh* pWorkingMesh);
void ScaleToSource();
void SymmetryCut();
void ClearWorkingList();
WorkingMesh* findMesh(MString& meshNodeName);
void removeMesh(MString& meshNodeName);
vector<WorkingMesh*> m_WorkingList;
};