54 #ifndef OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITETRAITS_HH 55 #define OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITETRAITS_HH 69 namespace Subdivider {
92 typedef typename Refs::Scalar Scalar;
93 typedef typename Refs::Point
Point;
94 HalfedgeHandle red_halfedge_handle_;
95 unsigned int generation_;
102 const unsigned int& generation() {
return generation_; }
103 void set_generation(
const unsigned int& _g) { generation_ = _g; }
104 void inc_generation() { ++generation_; }
105 void set_red() { red_ = 1; }
106 void set_green() {red_ = 0; }
107 bool is_red() {
return red_; }
108 bool is_green() {
return !red_; }
109 void set_red_halfedge_handle(HalfedgeHandle& _heh)
110 { red_halfedge_handle_ = _heh; }
111 HalfedgeHandle& red_halfedge_handle() {
return red_halfedge_handle_; }
112 void set_quality(Scalar& _q) { quality_ = _q; }
113 Scalar& quality() {
return quality_; }
114 const Point& midpoint()
const {
return midpoint_; }
115 void set_midpoint(
const Point& _p) { midpoint_ = _p; }
116 const Point& position()
const {
return position_; }
117 void set_position(
const Point& _p) { position_ = _p; }
123 typedef typename Refs::Point
Point;
124 typedef typename Refs::Scalar Scalar;
129 const Point& midpoint()
const {
return midpoint_; }
130 void set_midpoint(
const Point& _vh) { midpoint_ = _vh; }
131 const Scalar& length()
const {
return length_; }
132 void set_length(
const Scalar& _s) { length_ = _s; }
133 const Point& position()
const {
return position_; }
134 void set_position(
const Point& _p) { position_ = _p; }
140 typedef typename Refs::Point
Point;
144 unsigned int generation_;
146 const Point& new_pos()
const {
return new_pos_; }
147 void set_new_pos(
const Point& _p) { new_pos_ = _p; }
148 const unsigned int& generation()
const {
return generation_; }
149 void set_generation(
const unsigned int& _i) { generation_ = _i; }
150 const Point& orig_pos()
const {
return orig_pos_; }
151 void set_orig_pos(
const Point& _p) { orig_pos_ = _p; }
152 const Point& position()
const {
return position_; }
153 void set_position(
const Point& _p) { position_ = _p; }
162 #endif // OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITETRAITS_HH defined Handle for a halfedge entity.
Add normals to mesh item (vertices/faces)