28 #ifndef _math_isosurf_triangle_h 29 #define _math_isosurf_triangle_h 35 #include <math/isosurf/tricoef.h> 36 #include <math/isosurf/edge.h> 52 unsigned int _orientation0;
53 unsigned int _orientation1;
54 unsigned int _orientation2;
58 enum {max_order = 10};
61 unsigned int orient0 = 0);
62 Ref<Edge> edge(
int i) {
return _edges[i]; };
64 unsigned int orientation(
int i)
const 66 return i==0?_orientation0:i==1?_orientation1:_orientation2;
68 unsigned int orientation(
const Ref<Edge>&)
const;
93 unsigned int order()
const {
return _order; }
95 void set_order(
int order,
const Ref<Volume>&vol,
double isovalue);
109 void set_r(
int i,
double r);
110 void set_s(
int i,
double s);
111 void set_w(
int i,
double w);
118 inline double w(
int i) {
return _w[i]; }
119 inline double r(
int i) {
return _r[i]; }
120 inline double s(
int i) {
return _s[i]; }
121 inline int n() {
return _n; }
122 virtual void set_n(
int n);
129 void init_rw(
int order);
Definition: triangle.h:100
Classes which need runtime information about themselves and their relationship to other classes can v...
Definition: class.h:244
The base class for all reference counted objects.
Definition: ref.h:194
A template class that maintains references counts.
Definition: ref.h:332
Definition: triangle.h:127
Definition: triangle.h:40