44 #include "DecimaterInfo.hh" 46 DecimaterInfo::DecimaterInfo() :
47 normalDeviation_(false),
48 normalFlipping_(false),
53 independentSets_(false),
54 decimationOrder_(DISTANCE),
55 normalDeviation_value_(0),
58 aspectRatio_value_(0),
59 roundness_value_(0) {}
62 DecimaterInfo::~DecimaterInfo() {
74 void DecimaterInfo::setDistanceConstraint(
double _value ){
77 distance_value_ = _value;
83 void DecimaterInfo::setNormalDeviationConstraint(
int _value ){
85 normalDeviation_ =
true;
86 normalDeviation_value_ = _value;
92 void DecimaterInfo::setNormalFlippingConstraint(){
94 normalFlipping_ =
true;
100 void DecimaterInfo::setIndependentSetsConstraint(){
102 independentSets_ =
true;
108 void DecimaterInfo::setRoundnessConstraint(
double _value ){
111 roundness_value_ = _value;
116 void DecimaterInfo::setAspectRatioConstraint(
double _value ){
119 aspectRatio_value_ = _value;
124 void DecimaterInfo::setEdgeLengthConstraint(
double _value ){
127 edgeLength_value_ = _value;
132 void DecimaterInfo::setDecimationOrder( DecimationOrder _order ){
134 decimationOrder_ = _order;
139 void DecimaterInfo::removeDistanceConstraint(){
150 void DecimaterInfo::removeEdgeLengthConstraint(){
154 edgeLength_value_ = 0;
161 void DecimaterInfo::removeNormalDeviationConstraint(){
163 if ( normalDeviation_ ) {
164 normalDeviation_ =
false;
165 normalDeviation_value_ = 0;
172 void DecimaterInfo::removeNormalFlippingConstraint(){
174 if ( normalFlipping_ ) {
175 normalFlipping_ =
false;
182 void DecimaterInfo::removeIndependentSetsConstraint(){
184 if ( independentSets_ ) {
185 independentSets_ =
false;
192 void DecimaterInfo::removeAspectRatioConstraint(){
194 if ( aspectRatio_ ) {
195 aspectRatio_ =
false;
196 aspectRatio_value_ = 0;
203 void DecimaterInfo::removeRoundnessConstraint(){
207 roundness_value_ = 0;
PerObjectData * copyPerObjectData()
Copy Function.