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_POLYBOOLOP_H__
11
#define __MayaDM_POLYBOOLOP_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMPolyUnite.h"
17
class PolyBoolOp : public PolyUnite
22
PolyBoolOp():PolyUnite(){}
23
PolyBoolOp(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:PolyUnite(file, name, parent, "polyBoolOp", shared, create){}
25
virtual ~PolyBoolOp(){}
27
void setOperation(unsigned int op)
30
fprintf(mFile,"\tsetAttr \".op\" %i;\n", op);
32
void setUseThresholds(bool uth)
34
if(uth == false) return;
35
fprintf(mFile,"\tsetAttr \".uth\" %i;\n", uth);
37
void setVertexDistanceThreshold(double vdt)
40
fprintf(mFile,"\tsetAttr \".vdt\" %f;\n", vdt);
42
void setFaceAreaThreshold(double fat)
45
fprintf(mFile,"\tsetAttr \".fat\" %f;\n", fat);
47
void getOperation()const
49
fprintf(mFile,"\"%s.op\"",mName.c_str());
51
void getUseThresholds()const
53
fprintf(mFile,"\"%s.uth\"",mName.c_str());
55
void getVertexDistanceThreshold()const
57
fprintf(mFile,"\"%s.vdt\"",mName.c_str());
59
void getFaceAreaThreshold()const
61
fprintf(mFile,"\"%s.fat\"",mName.c_str());
64
PolyBoolOp(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
65
:PolyUnite(file, name, parent, nodeType, shared, create) {}
69
#endif//__MayaDM_POLYBOOLOP_H__