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_POLYCOLLAPSEF_H__
11
#define __MayaDM_POLYCOLLAPSEF_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMPolyModifier.h"
17
class PolyCollapseF : public PolyModifier
22
PolyCollapseF():PolyModifier(){}
23
PolyCollapseF(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:PolyModifier(file, name, parent, "polyCollapseF", shared, create){}
25
virtual ~PolyCollapseF(){}
27
void setUseAreaThreshold(bool uat)
29
if(uat == false) return;
30
fprintf(mFile,"\tsetAttr \".uat\" %i;\n", uat);
32
void setAreaThreshold(double at)
35
fprintf(mFile,"\tsetAttr \".at\" %f;\n", at);
37
void getUseAreaThreshold()const
39
fprintf(mFile,"\"%s.uat\"",mName.c_str());
41
void getAreaThreshold()const
43
fprintf(mFile,"\"%s.at\"",mName.c_str());
46
PolyCollapseF(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
47
:PolyModifier(file, name, parent, nodeType, shared, create) {}
51
#endif//__MayaDM_POLYCOLLAPSEF_H__