Closed zxo102 closed 9 months ago
Hi, if I am correct the following should get you what you need:
geo_model.solutions.raw_arrays.edges
geo_model.solutions.raw_arrays.vertices
Please let us know if it solves the issue. Cheers!
Yep, I can confirm that these attributes return the vertices and edges
The script
geo_model.solutions.raw_arrays.edges, geo_model.solutions.raw_arrays.vertices
returns the vertices and edges.
Following the example at https://gemgis.readthedocs.io/en/latest/getting_started/tutorial/69_Export_GemPy_model_into_blender.html, A gempy model can be exported to Blender correctly.
Thanks for your help.
In the 69_Export_GemPy_model_into_blender example at the site https://gemgis.readthedocs.io/en/latest/getting_started/tutorial/69_Export_GemPy_model_into_blender.html, vertices and faces can be get as follows in the old version of gempy (2.3.1?) like :
`vertices, faces = gp.get_surfaces(geo_model)
Enter values to shift model
x0, y0, z0 = 0, 0, -700
Save the model for blender
for i in range(len(vertices)): np.save('vertices/' + 'vert%02d.npy' %i, vertices[i]-[x0, y0, z0]) np.save('faces/' + 'faces%02d.npy' %i, faces[i]) print(len(vertices[i]))`
Unfornately , the code
vertices, faces = gp.get_surfaces(geo_model)
does not work in the new version of gempy ('2023.2.0b1'). Anybody knows how to get vertices and faces of geo_model in the new version of gempy ('2023.2.0b1')?
Thanks a lot for your help.