50 #include "DecimaterInfo.hh"
52 DecimaterInfo::DecimaterInfo() :
53 normalDeviation_(false),
54 normalFlipping_(false),
59 independentSets_(false),
60 decimationOrder_(DISTANCE),
61 normalDeviation_value_(0),
64 aspectRatio_value_(0),
65 roundness_value_(0) {}
68 DecimaterInfo::~DecimaterInfo() {
80 void DecimaterInfo::setDistanceConstraint(
double _value ){
83 distance_value_ = _value;
89 void DecimaterInfo::setNormalDeviationConstraint(
int _value ){
91 normalDeviation_ =
true;
92 normalDeviation_value_ = _value;
98 void DecimaterInfo::setNormalFlippingConstraint(){
100 normalFlipping_ =
true;
106 void DecimaterInfo::setIndependentSetsConstraint(){
108 independentSets_ =
true;
114 void DecimaterInfo::setRoundnessConstraint(
double _value ){
117 roundness_value_ = _value;
122 void DecimaterInfo::setAspectRatioConstraint(
double _value ){
125 aspectRatio_value_ = _value;
130 void DecimaterInfo::setEdgeLengthConstraint(
double _value ){
133 edgeLength_value_ = _value;
138 void DecimaterInfo::setDecimationOrder( DecimationOrder _order ){
140 decimationOrder_ = _order;
145 void DecimaterInfo::removeDistanceConstraint(){
156 void DecimaterInfo::removeEdgeLengthConstraint(){
160 edgeLength_value_ = 0;
167 void DecimaterInfo::removeNormalDeviationConstraint(){
169 if ( normalDeviation_ ) {
170 normalDeviation_ =
false;
171 normalDeviation_value_ = 0;
178 void DecimaterInfo::removeNormalFlippingConstraint(){
180 if ( normalFlipping_ ) {
181 normalFlipping_ =
false;
188 void DecimaterInfo::removeIndependentSetsConstraint(){
190 if ( independentSets_ ) {
191 independentSets_ =
false;
198 void DecimaterInfo::removeAspectRatioConstraint(){
200 if ( aspectRatio_ ) {
201 aspectRatio_ =
false;
202 aspectRatio_value_ = 0;
209 void DecimaterInfo::removeRoundnessConstraint(){
213 roundness_value_ = 0;
PerObjectData * copyPerObjectData()
Copy Function.