Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Model Mesh to another software #710

Closed
tonapawilliam opened this issue May 5, 2024 · 6 comments
Closed

Export Model Mesh to another software #710

tonapawilliam opened this issue May 5, 2024 · 6 comments
Labels

Comments

@tonapawilliam
Copy link

Excuse me sir
Can the model in meshtool is exported to another software? I want to export polygon model to another software for comparison result.

@halbmy
Copy link
Contributor

halbmy commented May 6, 2024

Can the model in meshtool is exported

I guess your asking whether a mesh (including properties like inverted model) can be exported?

A very widespread format, particularly for 3D visualization, is vtk. A mesh can be exported by

mesh.exportVTK("mesh.vtk")

If you want to include properties, e.g. from an inversion using a manager this might be extended

mesh = mgr.paraDomain
mesh["density"] = mgr.model
mesh.exportVTK(...

However, most managers have a method mgr.saveResult() that includes vtk export.

@halbmy halbmy added the question label May 6, 2024
@tonapawilliam
Copy link
Author

I want the my model just function in
pg.viewer.mpl.drawPLC
ISo I can make my model in one layer another software so I can my model in front of my inversion result. In pygimli I can do this with function pg.viewer, so I can comparion my inversion model with my syntetic model.

@tonapawilliam
Copy link
Author

In case, I just want to export the line of my model:

`world = mt.createWorld (....)
circle= mt.createCircle (..)

model = world ÷ circle
pg.show(model)`

Exported model can be export in xyz or something for comparison inversion result with model in another software modelling

@halbmy
Copy link
Contributor

halbmy commented May 6, 2024

I want the my model just function in

It is really hard to guess what you mean.

The variable model (combined by the world and a circle) is a piece-wise linear complex. It does neither have a discretization nor any values associated. It is just structures (points and lines) that can be plotted, e.g. on an inversion result.

@tonapawilliam
Copy link
Author

tonapawilliam commented May 7, 2024

Okay, sir, so the structure can be exported to another software or not? If cannot, can the inversion result from Res2Dinv is plotted in pygimli? Or do you have recommendation software for comparison result of res2dinv and pygimli, and the software can plot the strutured model?

Edit:
I just an idea. I use Pykrige for interpolation gimli and res2dinv result. And i use pg.paraview for first layer all my inversion model.

@halbmy
Copy link
Contributor

halbmy commented May 14, 2024

Of course, inversion results can be exported or interpolated. To avoid interpolation errors, one should use a regular grid for a comparison. It should be easy to read in a res2dinv model into a grid.

I have no idea what you mean with pg.paraview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants