5 #include "../shared/shared.h"
17 int GeomEdge::Cracked()
const {
20 R2 GeomEdge::F(
double theta)
const{
24 R2 A=v[0]->r,B=v[1]->r;
28 _assert_(theta>-1e-12 && theta<1+1e-12);
32 cb = theta*theta*(3-2*theta);
34 cta = (1-theta)*(1-theta)*theta;
35 ctb = (theta-1)*theta*theta ;
59 return A*ca + B*cb + tg[0]*cta + tg[1]*ctb;
62 int GeomEdge::Mark()
const {
65 int GeomEdge::Required() {
76 void GeomEdge::SetCracked() {
79 void GeomEdge::SetTgA() {
82 void GeomEdge::SetTgB() {
85 void GeomEdge::SetMark() {
88 void GeomEdge::SetUnMark() {
91 void GeomEdge::SetRequired() {
94 int GeomEdge::TgA()
const {
97 int GeomEdge::TgB()
const {