iv3d-users

Text archives Help


Re: [IV3D-USERS] confused about a parameter


Chronological Thread 
  • From: Tom Fogal < >
  • To: İhsan MUTLU < >
  • Cc:
  • Subject: Re: [IV3D-USERS] confused about a parameter
  • Date: Tue, 10 Jul 2018 16:35:37 -0700

Hi Ihsan,

Please keep replies on-list.

"getMeshes" is a function of datasets, not renderwindows (iv3d.renderer.new returns a renderer with an associated dataset, not a dataset).  Try "data.getDataset().getMeshes()".

HTH,
-tom

On 07/10/2018 11:43 AM, İhsan MUTLU wrote:
I am trying this to get meshes but not working either.
data = "iv3d.renderer.new(targetDir)
meshes = data.getMeshes()


2018-07-10 21:27 GMT+03:00 İhsan MUTLU < >:
Hi Tom,

I have been trying and here is results:

- "tuvok.io.exportMeshes" command gets a mesh as first parameter for exporting and only "tuvok.io.loadMeshes" returns a mesh class.
- " tuvok.io.loadMeshes " command loads an existing mesh (or am I getting it wrong?) and this is no help for me as I am trying to create a mesh from iso surface. ( Just as when you click "Export as Mesh" button on isosurface settings button.)
- You have recommended dataset.getMeshes() but it is not included in lua scripting window with "help" command.

2018-07-10 20:18 GMT+03:00 Tom Fogal < >:

Hi Ihsan,

Can't dig into details now, but it looks like dataset.getMeshes() returns a vector of what you need.  My guess is that the meshes associated with a dataset is empty at first, and another function can be used to add to the list that getMeshes will return.

Try grepping around for 'exportMesh', and the "help(...)" command from the scripting window, and send us another ping if that's not enough.

cheers,
-tom


On 07/10/2018 10:00 AM, İhsan MUTLU wrote:
Hi Tom,

I hate to bother you again but I am having problems using "tuvok.io.exportMesh(shared_ptr, string)" when trying to create and export mesh from isosurface. From what I can understand from codes first parameter is a Mesh class but no other code returns a mesh class as far as I can see. I wanted to try if "tuvok.io.extractIsosurface" will do  the job but I couldn't get it to work. Can you give me a simple example how to create and export a mesh with lua scripting?

Thanks in advance.

2018-07-09 22:14 GMT+03:00 İhsan MUTLU < >:
That is exactly what I am looking for. I am trying to get a simple 3d model out of medical imaging and your project helped me a lot. Keep up the good work.

2018-07-09 20:39 GMT+03:00 Tom Fogal < >:
Hi Ihsan,

In order, the arguments are:

- a list of filenames, for now just take the single filename and
encapsulate it in a list.
- the output filename
- a temporary directory to use to create intermediate files
- whether or not the script is allowed to "interact" with the user. 
This is most notably the difference between "please provide the
parameters for this file via this dialog" and "conversion failed"
- whether to quantize [true] or not [false] the data to 8bit (almost
always "no"; this can affect quality significantly)

Apologies for the lack of docs on the API.  Would love to see that fixed
someday ...

HTH,
-tom


On 07/09/2018 08:50 AM, İhsan MUTLU wrote:
> Hey, thanks for great work.
> I would like to call function tuvok.io.convertDataset(GenericList,
> string, string, bool,bool) but I cant seem to figure out what
> parameters are supposed to be. Can you desribe them or lead me to
> somewhere that does, please?









  • Re: [IV3D-USERS] confused about a parameter, Tom Fogal, 07/10/2018

Archive powered by MHonArc 2.6.18.

Top of page