forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInputMesh.h
53 lines (45 loc) · 1.31 KB
/
InputMesh.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
#ifndef __InputMesh_h__
#define __InputMesh_h__
#include "Input.h"
#include <HAPI/HAPI.h>
#include <maya/MFnMesh.h>
class InputMesh : public Input
{
public:
InputMesh();
virtual ~InputMesh();
virtual AssetInputType assetInputType() const;
virtual void setInputGeo(
MDataBlock &dataBlock,
const MPlug &plug
);
protected:
bool processPoints(
const MFnMesh &meshFn
);
bool processNormals(
const MObject &meshObj,
const MFnMesh &meshFn,
std::vector<int> vertexCount
);
bool processUVs(
const MFnMesh &meshFn,
std::vector<int> vertexCount,
std::vector<int> vertexList
);
bool processColorSets(
const MFnMesh &meshFn,
std::vector<int> vertexCount,
std::vector<int> vertexList
);
bool processSets(
const MPlug &plug,
const MFnMesh &meshFn
);
bool processShadingGroups(
const MFnMesh &meshFn,
const MStringArray &sgNames,
const MObjectArray &sgCompObjs
);
};
#endif