当前位置: 首页>>代码示例>>C++>>正文


C++ CBvert_list::num方法代码示例

本文整理汇总了C++中CBvert_list::num方法的典型用法代码示例。如果您正苦于以下问题:C++ CBvert_list::num方法的具体用法?C++ CBvert_list::num怎么用?C++ CBvert_list::num使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CBvert_list的用法示例。


在下文中一共展示了CBvert_list::num方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ret

inline ARRAY<double>
get_offset_scales(CBvert_list& skels, CSimplexFilter& filter)
{
   ARRAY<double> ret(skels.num());
   for (int i=0; i<skels.num(); i++)
      ret += offset_scale(skels[i], filter);
   return ret;
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:8,代码来源:skin.C

示例2: ret

inline PIXEL_list
get_pixels(CBvert_list& verts, ProxySurface* p)
{
   PIXEL_list ret(verts.num());
   for (int i=0; i<verts.num(); i++) {
      ret += PixelsData::get_pix(verts[i], p);
   }
   return ret;
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:9,代码来源:proxy_surface.C

示例3: ret

VertMemeList 
Bbase::find_boss_vmemes(CBvert_list& verts) 
{
   // Convenience: lookup boss memes for a whole list of vertices

   VertMemeList ret(verts.num());
   for (int i=0; i<verts.num(); i++) {
      VertMeme* vm = find_boss_vmeme(verts[i]);
      if (vm)
         ret += vm;
   }
   return ret;
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:13,代码来源:bbase.C

示例4:

inline bool
join(CBvert_list& o, CBvert_list& c, MULTI_CMDptr& cmd, Cstr_ptr& msg)
{
   // Used in Skin::join_to_skel() to join seams of a mesh together.

   JOIN_SEAM_CMDptr join = new JOIN_SEAM_CMD(o, c);
   if (join->doit()) {
      err_adv(debug, "  joined %s (%d verts to %d verts)",
              **msg, o.num(), c.num());
      cmd->add(join);
      return true;
   } else {
      err_adv(debug, "  error: can't join %s", **msg);
      return false;
   }
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:16,代码来源:skin.C

示例5: gen_twins

 // Do a whole list of vertices at a shot:
 static bool gen_twins(CBvert_list& verts, double h,
                       CSimplexFilter& filter) {
    bool ret = true;
    for (int i=0; i<verts.num(); i++)
       ret = gen_twins(verts[i], h, filter) && ret;
    return ret;
 }
开发者ID:QuLogic,项目名称:jot-lib,代码行数:8,代码来源:inflate_vert_data.hpp

示例6:

inline void
update_verts(CBvert_list& verts)
{
   // helper for LMESH::update_subdivision(CBface_list& faces)
   for (int i=0; i<verts.num(); i++)
      ((Lvert*)verts[i])->update_subdivision();
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:7,代码来源:lmesh.C

示例7: assert

void
Skin::restrict(CBvert_list& verts, SimplexFilter* f) const
{
   assert(f);
   for (int i=0; i<verts.num(); i++) {
      SkinMeme* m = SkinMeme::upcast(find_meme(verts[i]));
      if (m) {
         //assert(m->track_simplex() == 0 || f->accept(m->track_simplex()));
         m->set_track_filter(f);
      }
   }
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:12,代码来源:skin.C

示例8: assert

inline void
get_parents(CBvert_list& verts, Bvert_list& vp, Bedge_list& ep)
{
   // Helper method used below in get_parents();
   // from the given list of vertices, return the parent
   // simplices in two lists: one of Lverts, one of Ledges.

   if (verts.empty())
      return;

   assert(LMESH::isa(verts.mesh()));

   for (int i=0; i<verts.num(); i++)
      add_p((Lvert*)verts[i], vp, ep);
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:15,代码来源:lmesh.C

示例9: Bvert_list

Bvert_list
LMESH::get_subdiv_inputs(CBvert_list& verts)
{
   static bool debug = Config::get_var_bool("DEBUG_LMESH_SUBDIV_INPUTS",false);

   // Given a set of vertices from the same LMESH, return
   // the vertices of the parent LMESH that affect the
   // subdivision locations of the given vertices.

   // Require verts share common LMESH
   // XXX - could relax this, provided we test each Bvert
   //       to ensure it is really an Lvert.
   if (!isa(verts.mesh()))
      return Bvert_list();

   // Get direct parent vertices and edges
   Bvert_list vp;       // vertex parents
   Bedge_list ep;       // edge parents
   get_parents(verts, vp, ep);

   err_adv(debug, "%d verts: parents: %d verts, %d edges",
           verts.num(), vp.num(), ep.num());

   // Clear flags of all adjacent faces
   clear_face_flags(vp);
   ep.clear_flag02();

   // Put all adjacent faces into a list
   Bface_list faces = get_q_faces(vp);
   err_adv(debug, "parent faces from verts: %d", faces.num());
   try_append(faces, ep.get_primary_faces());
   err_adv(debug, "parent faces from edges too: %d", faces.num());

   // Pull out the vertices:
   return faces.get_verts();
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:36,代码来源:lmesh.C

示例10:

void
UVdata::split(CBvert_list& verts)
{
   for (int i=0; i<verts.num(); i++)
      UVdata::split(verts[i]);
}
开发者ID:ArnaudGastinel,项目名称:jot-lib,代码行数:6,代码来源:uv_data.C


注:本文中的CBvert_list::num方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。