Changeset 12365 for issm/trunk-jpl/src/c/objects/Bamg/GeomEdge.cpp
- Timestamp:
- 06/04/12 16:40:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Bamg/GeomEdge.cpp
r6412 r12365 16 16 17 17 /*Methods*/ 18 /*FUNCTION GeomEdge::Cracked{{{ 1*/18 /*FUNCTION GeomEdge::Cracked{{{*/ 19 19 int GeomEdge::Cracked() const { 20 20 return type &1; 21 21 }/*}}}*/ 22 /*FUNCTION GeomEdge::F{{{ 1*/22 /*FUNCTION GeomEdge::F{{{*/ 23 23 R2 GeomEdge::F(double theta) const{ 24 24 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/F)*/ … … 62 62 return A*ca + B*cb + tg[0]*cta + tg[1]*ctb; 63 63 } 64 /*}}} 1*/65 /*FUNCTION GeomEdge::Mark{{{ 1*/64 /*}}}*/ 65 /*FUNCTION GeomEdge::Mark{{{*/ 66 66 int GeomEdge::Mark() const { 67 67 return type &16; 68 68 }/*}}}*/ 69 /*FUNCTION GeomEdge::R1tg{{{ 1*/69 /*FUNCTION GeomEdge::R1tg{{{*/ 70 70 double GeomEdge::R1tg(double theta,R2 & t) const{ 71 71 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, MeshGeom.cpp/R1tg)*/ … … 138 138 else return 0; 139 139 } 140 /*}}} 1*/141 /*FUNCTION GeomEdge::Required{{{ 1*/140 /*}}}*/ 141 /*FUNCTION GeomEdge::Required{{{*/ 142 142 int GeomEdge::Required() { 143 143 return type &64; 144 144 }/*}}}*/ 145 /*FUNCTION GeomEdge::Set {{{ 1*/145 /*FUNCTION GeomEdge::Set {{{*/ 146 146 void GeomEdge::Set(const GeomEdge & rec,const Geometry & Gh ,Geometry & GhNew){ 147 147 *this = rec; … … 152 152 } 153 153 /*}}}*/ 154 /*FUNCTION GeomEdge::SetCracked{{{ 1*/154 /*FUNCTION GeomEdge::SetCracked{{{*/ 155 155 void GeomEdge::SetCracked() { 156 156 type |= 1;/*=>1st digit to 1*/ 157 157 }/*}}}*/ 158 /*FUNCTION GeomEdge::SetTgA{{{ 1*/158 /*FUNCTION GeomEdge::SetTgA{{{*/ 159 159 void GeomEdge::SetTgA() { 160 160 type |=4; /*=>2d digit to 1*/ 161 161 }/*}}}*/ 162 /*FUNCTION GeomEdge::SetTgB{{{ 1*/162 /*FUNCTION GeomEdge::SetTgB{{{*/ 163 163 void GeomEdge::SetTgB() { 164 164 type |=8; /*=> 3d digit to 1*/ 165 165 }/*}}}*/ 166 /*FUNCTION GeomEdge::SetMark{{{ 1*/166 /*FUNCTION GeomEdge::SetMark{{{*/ 167 167 void GeomEdge::SetMark() { 168 168 type |=16;/*=> 4th digiy to 1*/ 169 169 }/*}}}*/ 170 /*FUNCTION GeomEdge::SetUnMark{{{ 1*/170 /*FUNCTION GeomEdge::SetUnMark{{{*/ 171 171 void GeomEdge::SetUnMark() { 172 172 type &= 1007 /* 1023-16 = 000111110111 => 4th digit to 0*/; 173 173 }/*}}}*/ 174 /*FUNCTION GeomEdge::SetRequired{{{ 1*/174 /*FUNCTION GeomEdge::SetRequired{{{*/ 175 175 void GeomEdge::SetRequired() { 176 176 type |= 64;/*=>6th digit to 1*/ 177 177 }/*}}}*/ 178 /*FUNCTION GeomEdge::Tg{{{ 1*/178 /*FUNCTION GeomEdge::Tg{{{*/ 179 179 int GeomEdge::Tg(int i) const { 180 180 return i==0 ? TgA() : TgB(); 181 181 }/*}}}*/ 182 /*FUNCTION GeomEdge::TgA{{{ 1*/182 /*FUNCTION GeomEdge::TgA{{{*/ 183 183 int GeomEdge::TgA() const { 184 184 return type &4; 185 185 }/*}}}*/ 186 /*FUNCTION GeomEdge::TgB{{{ 1*/186 /*FUNCTION GeomEdge::TgB{{{*/ 187 187 int GeomEdge::TgB() const { 188 188 return type &8;
Note:
See TracChangeset
for help on using the changeset viewer.