Loop3D/LoopStructural

[Question] how to export as vtk .ts?

Closed this issue · 10 comments

Hi again,
I searched the loop Structural docs and couldn't find anything obvious that allows me to export the fault surfaces I'm generating.
I can get it from vtk to .ts by myself if there isn't already a .ts output built.

Thanks
Matt

Hi Matt,

I haven't written a ts exporter yet but there is #100 that I need to integrate into LoopStructural. I personally don't use external visualization so it hasn't been a priority but I will aim to do it in the near future. It will follow a similar pattern to the vtk exporter.

Cheers

Thank Lachlan,
I'm just using LoopStructural from a pip install and I'm getting

ModuleNotFoundError: No module named 'LoopStructural.export'

This is the same docker container I'm able to build the faults in, something is off with my install I think

Umm that may be because there is no init.py file in the module, can you directly import the files

from LoopStructural.export.exporters import write_feat_surfs

I haven't actually used this module but I'll take a look and see if I can workout what is going on.

Hi Lachlan, I can see 'export' in the directory structure but LoopStructural doesn't have export available anywhere I can find it.
I may be doing something wrong??? Trying to directly import it gives me the same error

image

Does this work

from LoopStructural.export.exporters import write_feat_surfs

For me it gives an error needing pyevtk but if you have the dependencies it should work. I haven't merged the TS code into the master branch currently so you'll have to wait for that.

That is odd, you'll have to leave that with me and I'll try to fix it up.

Hi Lachlan,
Had another look at it a few minutes ago and I was able to get it working after a reinstall. I'm not sure if it was adding the init file to that export directory or installing surfe but that line just started working.

image
Also... there's a typo in exporters.py

image

Thanks Matt, I'll fix that up