Subversion Repositories gelsvn

Rev

Rev 630 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 630 Rev 631
Line 7... Line 7...
7
/**
7
/**
8
@file Walker.h
8
@file Walker.h
9
 Contains class for walking a mesh.
9
 Contains class for walking a mesh.
10
 */
10
 */
11
 
11
 
12
#ifndef __HMESH_HALFEDGEWALKER_H__
-
 
13
#define __HMESH_HALFEDGEWALKER_H__
12
#pragma once
14
 
13
 
15
#include "ConnectivityKernel.h"
14
#include "Manifold.h"
16
 
15
 
17
namespace HMesh
16
namespace HMesh
18
{
17
{
19
    /** Class for traversing the entities of a HMesh. This class can work as 
18
    /** Class for traversing the entities of a HMesh. This class can work as 
20
     both a vertex and a face circulator but also move in other ways. It is,
19
     both a vertex and a face circulator but also move in other ways. It is,
Line 52... Line 51...
52
        VertexID vertex() const; 
51
        VertexID vertex() const; 
53
        /// get ID of face owning current halfedge of walker
52
        /// get ID of face owning current halfedge of walker
54
        FaceID face() const; 
53
        FaceID face() const; 
55
        /// get ID of current halfedge of walker
54
        /// get ID of current halfedge of walker
56
        HalfEdgeID halfedge() const;
55
        HalfEdgeID halfedge() const;
57
 
56
        
58
        /// assignment operator
57
        /// assignment operator
59
        Walker operator =(const Walker& w);
58
        Walker operator =(const Walker& w);
60
 
59
 
61
    private:
60
    private:
62
        const ConnectivityKernel* ck;
61
        const ConnectivityKernel* ck;
Line 115... Line 114...
115
        counter = w.counter;
114
        counter = w.counter;
116
        ck = w.ck;
115
        ck = w.ck;
117
        last = w.last;
116
        last = w.last;
118
        return *this;
117
        return *this;
119
    }
118
    }
-
 
119
    
-
 
120
 
120
 
121
 
121
}
122
}
122
 
123
 
123
#endif
-