Missed two in the last commit
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@942 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -107,7 +107,6 @@ build_strips()
|
|||||||
{
|
{
|
||||||
Strip experiments[3];
|
Strip experiments[3];
|
||||||
typename Mesh::HalfedgeHandle h[3];
|
typename Mesh::HalfedgeHandle h[3];
|
||||||
size_t best_length,length , best_idx;
|
|
||||||
FaceHandles faces[3];
|
FaceHandles faces[3];
|
||||||
typename FaceHandles::iterator fh_it, fh_end;
|
typename FaceHandles::iterator fh_it, fh_end;
|
||||||
typename Mesh::FaceIter f_it, f_end=mesh_.faces_end();
|
typename Mesh::FaceIter f_it, f_end=mesh_.faces_end();
|
||||||
@@ -148,8 +147,9 @@ build_strips()
|
|||||||
|
|
||||||
|
|
||||||
// build 3 strips, take best one
|
// build 3 strips, take best one
|
||||||
best_length = 0;
|
size_t best_length = 0;
|
||||||
best_idx = 0;
|
size_t best_idx = 0;
|
||||||
|
size_t length;
|
||||||
for (size_t i=0; i<3; ++i)
|
for (size_t i=0; i<3; ++i)
|
||||||
{
|
{
|
||||||
build_strip(h[i], experiments[i], faces[i]);
|
build_strip(h[i], experiments[i], faces[i]);
|
||||||
|
|||||||
@@ -212,11 +212,11 @@ int getche(void)
|
|||||||
int main (void)
|
int main (void)
|
||||||
{
|
{
|
||||||
char msg[] = "press key to continue...";
|
char msg[] = "press key to continue...";
|
||||||
char *ptr = msg, tmp;
|
char *ptr = msg;
|
||||||
|
|
||||||
while ( !OpenMesh::Utils::kbhit() )
|
while ( !OpenMesh::Utils::kbhit() )
|
||||||
{
|
{
|
||||||
tmp = *ptr;
|
char* tmp = *ptr;
|
||||||
*ptr = islower(tmp) ? toupper(tmp) : tolower(tmp);
|
*ptr = islower(tmp) ? toupper(tmp) : tolower(tmp);
|
||||||
printf("\r%s", msg); fflush(stdout);
|
printf("\r%s", msg); fflush(stdout);
|
||||||
*ptr = (char)tmp;
|
*ptr = (char)tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user