[Paraview] Export VRML files for meshlab to check

Wayne Wu salad00 at gmail.com
Tue Jun 21 06:33:33 EDT 2011


The data are cells from CFD FVM. I just found that the PV gui could
export files which can then be loaded into meshlab; it implies that
the problem should be related to my python script.

I report the gui way worked with both pv 3.8.1 and 3.10.1, both vrml
and x3d formats.

I am doing more study on my code. Thanks a lot for all your help.
Wayne

On 21 June 2011 03:55, Berk Geveci <berk.geveci at kitware.com> wrote:
> What is the data that you are exporting?  It doesn't seem to have any
> cells (i.e. geometry). A set of points maybe?
>
> On Mon, Jun 20, 2011 at 6:06 PM, Wayne Wu <salad00 at gmail.com> wrote:
>> Hi,
>>
>> First of all, thanks a lot for your help.
>>
>> I have tried X3D and meshlab also complained that "Error details: File
>> without a geometry" for the x3d file.
>>
>> Please see my piece of code:
>>
>> servermanager.LoadState(stateFile)
>> SetActiveView(GetRenderView())
>>
>> renderView = GetRenderView()
>> renderView.ViewTime = 1
>> view = Render()
>>
>> exporters = servermanager.createModule("exporters")
>> # export to VRML format
>> #vrml = exporters.VRMLExporter(View = view, FileName = "foo.wrl")
>> #vrml.Write()
>> # export to X3D format
>> x3d = exporters.X3DExporter(View = view, FileName = "foo.x3d")
>> x3d.Write()
>>
>> On the other hand, my boss advised that PV 3.8 worked well with vrml.
>> Therefore I also tried PV 3.8.1, (since I couldn't find the 3.8 from
>> the official website). When I executed the same code with PV 3.8.1,
>> pvpython complained that
>>
>> vtkVRMLExporter (0x30802d0): no actors found for writing VRML file.
>>
>> I am really a newbie about this and am not sure how to create actors
>> attached with the render.
>>
>> I also attach the vrml and x3d files for your information. I look
>> forward to your advices. Thanks a lot.
>>
>> Regards, Wayne
>>
>> On 20 June 2011 15:51, Berk Geveci <berk.geveci at kitware.com> wrote:
>>> By the way, did you try exporting X3D instead of VRML? I believe
>>> Meshlab can read X3D and probably convert it to VRML.
>>>
>>> On Sat, Jun 18, 2011 at 12:37 PM, Wayne Wu <salad00 at gmail.com> wrote:
>>>> Hi Seb,
>>>>
>>>> I confirm the paraview I am using is 3.10.1 64 bit, downloaded from
>>>> the official website. My OS is Ubuntu 10.04.
>>>>
>>>> Thanks
>>>> Wayne
>>>>
>>>> On 18 June 2011 16:07, Sebastien Jourdain
>>>> <sebastien.jourdain at kitware.com> wrote:
>>>>> I can not remember but it might be also in the 3.10.1 release. But
>>>>> otherwise, yes if you pick the git/master version you will have to
>>>>> compile it yourself.
>>>>>
>>>>> If you have the git history, look for a fix from Utkarsh about exporter.
>>>>>
>>>>> Seb
>>>>>
>>>>> On Sat, Jun 18, 2011 at 10:06 AM, Wayne Wu <salad00 at gmail.com> wrote:
>>>>>> Hi Sebastien,
>>>>>>
>>>>>> Thanks a lot. Does that mean I have to build ParaView from the latest
>>>>>> git source? When should the binaries of this fixed version come to be
>>>>>> released if I don't build by myself?
>>>>>>
>>>>>> Thanks.
>>>>>> http://code-saturne.blogspot.com/
>>>>>>
>>>>>> On 18 June 2011 13:55, Sebastien Jourdain
>>>>>> <sebastien.jourdain at kitware.com> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> this bug was fix in git master.
>>>>>>>
>>>>>>> Seb
>>>>>>>
>>>>>>> On Sat, Jun 18, 2011 at 7:45 AM, Wayne Wu <salad00 at gmail.com> wrote:
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> I am required to export VRML objects from ParaView using Python
>>>>>>>> scripts. I followed the examples at
>>>>>>>>
>>>>>>>> http://www.paraview.org/pipermail/paraview/2010-June/017989.html
>>>>>>>>
>>>>>>>> to complete the script, and outputted a .vrml file. I need to use
>>>>>>>> meshlab to check the file; it seems that meshlab can only recognise
>>>>>>>> .wrl extension, and thus I modified the .vrml file into .wrl. When
>>>>>>>> meshlab loaded the file, there is an error saying
>>>>>>>>
>>>>>>>> "Error details: File without a geometry"
>>>>>>>>
>>>>>>>> I searched and am not sure about how to fix the error and load the
>>>>>>>> file. Do you have any experiences on exporting VRML files and give a
>>>>>>>> hint please?
>>>>>>>>
>>>>>>>> Many thanks,
>>>>>>>> http://code-saturne.blogspot.com/
>>>>>>>> _______________________________________________
>>>>>>>> Powered by www.kitware.com
>>>>>>>>
>>>>>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>>>>>
>>>>>>>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>>>>>>>
>>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>
>>>
>>
>


More information about the ParaView mailing list