OpenCASCADE kernel and gmsh.model.set_coordinates
Hello,
I have generated a mesh in 2D using the OpenCASCADE kernel in which all the nodes are in the xy-plane.
Now, I would like to generate another mesh based on the extrusion of this geometry. But first, I would like to place the original mesh in the yz-plane.
I've attempted to do so by means of gmsh.model.get_value and gmsh.model.set_coordinates, as in:
dim = 0
all_pts = gmsh.model.get_entities(dim)
for d, t in all_pts:
x, y, z = gmsh.model.get_value(d, t, [])
gmsh.model.set_coordinates(t, 0, y, x)
However, when I look at the resulting geometry in the GUI, the points have been rotated, but the lines and surfaces have not.
I've managed to reproduce the results using the first example of the tutorial, which is attached to this issue.
test.pyReplacing every instance of model.occ
to model.geo
results in the expected geometry.
How could I do so in the openCASCADE kernel?
Best regards,
Francisco