-
Notifications
You must be signed in to change notification settings - Fork 59
/
InputMesh.h
43 lines (34 loc) · 1.37 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
#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);
virtual void setInputComponents(MDataBlock &dataBlock,
const MPlug &geoPlug,
const MPlug &compPlug,
const MPlug &primGroupPlug,
const MPlug &pointGroupPlug);
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