예제 #1
0
파일: SurfaceMesh.cpp 프로젝트: ctlee/gamer
bool hasHole(const SurfaceMesh &mesh){
    for(auto eID : mesh.get_level_id<2>()){
        auto cover = mesh.get_cover(eID);
        if(cover.size() != 2){
            return true;
        }
    }
    return false;
}
예제 #2
0
파일: SurfaceMesh.cpp 프로젝트: ctlee/gamer
int getValence(const SurfaceMesh &mesh, const SurfaceMesh::SimplexID<1> vertexID)
{
    return mesh.get_cover(vertexID).size();
}