Skip to content

Instantly share code, notes, and snippets.

@geoorgeous
Last active March 23, 2017 16:02
Show Gist options
  • Save geoorgeous/0dac4f2d0a0e8aff9ca89fd2613b699a to your computer and use it in GitHub Desktop.
Save geoorgeous/0dac4f2d0a0e8aff9ca89fd2613b699a to your computer and use it in GitHub Desktop.
// 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