Skip to content

Periodic 3D Delaunay mesh in 1-sheeted covering #8063

Answered by MaelRL
gy114 asked this question in Q&A
Discussion options

You must be logged in to vote

There are two types of offsets, which you have to distinguish between:

  • offsets of vertices: as you write, when you are in 27 sheet, vertices are duplicate over 27 copies, and 26 copies are offsets of the canonical one. This offset lives within the vertex base class.
  • offsets of vertices within a cell: this is the offset that you need to apply (on top of the vertex offset above) to get the correct geometry of the cell. There is one offset per vertex, and it's usually ((0,0,0); (0,0,0); (0,0,0); (0,0,0)) since most cells do not cross over the boundaries. This offset lives in the cell base class.

You could compute the geometric position manually, getting vh->offset() and cell->offset(int) a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gy114
Comment options

Answer selected by MaelRL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment