Logo Search packages:      
Sourcecode: madlib version File versions  Download package

pFace MAd::M_createTri ( pMesh  mesh,
int  order,
int  vId[],
pGEntity  gent 
)

Creates a complete high order triangle, classified on gent, in mesh m using specified vertices template is the following v0 ho[v0->v1] v1 ho[v1->v2] v2 ho[v2->v0]

Definition at line 2903 of file MeshDataBaseInterface.cc.

  {
    pFace pf(0);
    switch(order)
      {
      case 1: pf = mesh->add_triangle (vId[0], vId[1], vId[2], gent);
        break;
      case 2: pf = mesh->add_triangle (order, true, gent,
                                       vId[0], vId[1], vId[2], 
                                       vId[3], vId[4], vId[5] );
        break;
      case 3: pf = mesh->add_triangle (order, true, gent,
                                       vId[0], vId[1], vId[2], 
                                       vId[3], vId[4], vId[5],
                                       vId[6], vId[7], vId[8], vId[9] );
        break;
      case 4: pf = mesh->add_triangle (order, true, gent,
                                       vId[0], vId[1], vId[2], 
                                       vId[3], vId[4], vId[5],
                                       vId[6], vId[7], vId[8], vId[9],
                                       vId[10], vId[11], vId[12], vId[13], vId[14] );
        break;
      default:
        MAdMsgSgl::instance().error(__LINE__,__FILE__,
                                    "Complete triangles not defined for order %d",
                                    order);
      }
    return pf;

  }


Generated by  Doxygen 1.6.0   Back to index