Last active
March 23, 2017 16:02
-
-
Save geoorgeous/0dac4f2d0a0e8aff9ca89fd2613b699a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A rough implementation of the Half Edged | |
// Data Structure. A lot more could be added | |
// on top! | |
struct Vertex; | |
struct HalfEdge; | |
struct Face; | |
struct Vertex { | |
Edge* halfEdge; | |
}; | |
struct HalfEdge { | |
Vertex* vertex; | |
Edge* pair; | |
Edge* next; | |
Face* face; | |
}; | |
struct Face { | |
Edge* halfEdge; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment