コード例 #1
0
ファイル: paper_doll.cpp プロジェクト: QuLogic/jot-lib
inline bool 
copy_edge(Bedge* a, CVertMapper& vmap)
{
   // copy edge attributes, e.g. from skel to skin

   Bedge* b = vmap.a_to_b(a);
   if (!(a && b))
      return false;

   if (a->is_weak())
      b->set_bit(Bedge::WEAK_BIT);

   // more?

   return true;
}
コード例 #2
0
ファイル: skin.C プロジェクト: ArnaudGastinel/jot-lib
bool 
Skin::copy_edge(Bedge* a) const
{
   // copy edge attributes, e.g. from skel to skin

   Bedge* b = _mapper.a_to_b(a);
   if (!(a && b))
      return false;

   if (a->is_weak())
      b->set_bit(Bedge::WEAK_BIT);

   // more?

   return true;
}