

At this point, lineLoop is able to describe the face effectively. For the example of the square: lineLoop =. If there are any holes in the domain, then the proceeding indices in the array will be the holes. The 0th index will be the outer most line. A face will be defined by line loops which are an array of the edges that compose the face. For this, I consider arcs the same as edges but with information such as the arc angle, radius, and center of the arc.Īlso, the edge list is in no particular order.īasically, I need to generate a list of faces. (2, 5) means that an edge is created between the 2nd and 5th node. There is no particular order to how the vertices are stored.Īn edge is a pair of indices that is obtained from the vertex list. These vertices are stored in an array (or list or vector or whatever). I am not doing anything with imaginary numbers or utilizing other graphs. My geometry is composed of vertices which is a double of real numbers (x, y). Please though, if there is additional data that I need to clarify or need to say, let me know and I will happily edit this thread. I will do my best to communicate my ideas to the users on the forum. I am still developing my math terms and language. I think that the example that I gave was an over simplification: Here is a link to a picture with a more complicated geometry. The answer would need to apply to any geometry. In this example, how can you identify that the outer square is the actual face verses the inner square which is a hole? And how can you know that the edges belong to that face?Īgain, this is a simplification.
#Gmsh specify number vertices how to#
But the challenge is is how to specify or how to know which Gline belongs to which face.įor example, say we have 2 squares, how can you identify line 1 belongs to square 1 or square 2? Basically, a GFace is a collection of Glines. Then, to create the lines, I need to specify which Gvertex is associated with the gline. The gmsh equilivant to a node is a Gvertex. The format is that I need to specify all of the nodes in the gmodel. I have my own line, arc, and node list and I need to convert it into a GModel (for those who are famalier with gmsh, I am essentially creating a. I am currently working on an alvorithm that will be able to take a list of lines, nodes (or vertices), and arcs and convert them into a data structure that is recognizable to GMSH.

This is only a simplification of an overall problem. This problem is assuming that the inner square is a hole. How would you be able to describe that the edges displayed belong to the outer square instead of the inner square? But rather, how can we mathematically describe if an edge, belongs to a face of a piece of geometry?įor example, let's say that you have a square within a square:
