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