2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of MayaDataModel.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
10
#ifndef __MayaDM_POLYCHIPOFF_H__
11
#define __MayaDM_POLYCHIPOFF_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMPolyMoveFace.h"
17
class PolyChipOff : public PolyMoveFace
22
PolyChipOff():PolyMoveFace(){}
23
PolyChipOff(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:PolyMoveFace(file, name, parent, "polyChipOff", shared, create){}
25
virtual ~PolyChipOff(){}
27
void setKeepFacesTogether(bool kft)
29
if(kft == true) return;
30
fprintf(mFile,"\tsetAttr \".kft\" %i;\n", kft);
32
void setDuplicate(bool dup)
34
if(dup == true) return;
35
fprintf(mFile,"\tsetAttr \".dup\" %i;\n", dup);
37
void getKeepFacesTogether()const
39
fprintf(mFile,"\"%s.kft\"",mName.c_str());
41
void getDuplicate()const
43
fprintf(mFile,"\"%s.dup\"",mName.c_str());
46
PolyChipOff(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
47
:PolyMoveFace(file, name, parent, nodeType, shared, create) {}
51
#endif//__MayaDM_POLYCHIPOFF_H__