-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathStitchEasyNode.h
77 lines (60 loc) · 1.81 KB
/
StitchEasyNode.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
68
69
70
71
72
73
74
75
76
77
#pragma once
#include "SMesh.h"
#include <maya/MPxNode.h>
#include <maya/MFnComponentListData.h>
#include <maya/MFnSingleIndexedComponent.h>
#include <maya/MMatrix.h>
class StitchEasyNode : public MPxNode
{
public:
StitchEasyNode();
virtual ~StitchEasyNode();
static void *creator();
static MStatus initialize();
virtual MStatus setDependentsDirty(const MPlug &plug, MPlugArray &otherPlugs);
virtual MStatus compute(const MPlug &plug, MDataBlock &datablock);
void appendStitch(MPoint& position, MMatrix& orientation, double length, double thickness, double skew, MPointArray& points, MIntArray& counts, MIntArray& indices, MFloatArray &Us, MFloatArray &Vs, MIntArray &UVCounts, MIntArray &UVIndices, MObject &customGeometry = MObject::kNullObj);
static MTypeId id;
static MObject aOutMesh;
static MObject aSmoothLevel;
static MObject aInMesh;
static MObject aInSmoothMesh;
static MObject aUseSmoothMesh;
static MObject aStitchLines;
static MObject aCustomGeometry;
static MObject aUseCustomGeometry;
static MObject aDistance;
static MObject aLength;
static MObject aUseLength;
static MObject aThickness;
static MObject aSkew;
static MObject aFlip;
static MObject aMultiplier;
static MObject aRotate;
static MObject aRotateX;
static MObject aRotateY;
static MObject aRotateZ;
static MObject aScale;
static MObject aScaleX;
static MObject aScaleY;
static MObject aScaleZ;
static MObject aTranslate;
static MObject aTranslateX;
static MObject aTranslateY;
static MObject aTranslateZ;
private:
MObject
m_sourceMesh,
m_component,
m_stitchMesh;
SMesh
m_baseMesh,
m_smoothMesh;
bool
m_dirtySourceMesh,
m_dirtyBaseMesh,
m_dirtyComponent,
m_dirtySmoothMesh,
m_dirtyStitchMesh,
m_dirtySmoothStitchMesh;
};