本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
}
示例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;
}
示例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();
}
示例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);
}
}
}
示例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);
}
示例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();
}
示例10:
void
UVdata::split(CBvert_list& verts)
{
for (int i=0; i<verts.num(); i++)
UVdata::split(verts[i]);
}