[vtkusers] vtkHierarchicalBoxDataSet

Magician f_magician at mac.com
Thu Jun 18 12:14:30 EDT 2015


Hi Berk,


I'm struggling for days to get the results, but it doesn't work yet.
Maybe I should generate child cells without SetAMRBox() method,
but I haven't find the alternatives.

And I‘m also facing another problem.
ComputeCellCenter() will call vtkCell.EvaluateLocation() method,
but the error is dumped:
> TypeError: EvaluateLocation argument 4: expected a sequence of 0 values, got float
Which value should I set at the 4th or other argument?


The attached file is my Python code.


Magician


> On Jun 16, 2015, at 03:22, Berk Geveci <berk.geveci at kitware.com> wrote:
> 
> Dear Magician,
> 
> Unfortunately, vtkAMRBox is not wrapped into Python. The right solution is to add a method to vtkOverlappingAMR that takes 6 int values and internally generates an AMR box. Maybe you can give that a shot.
> 
> AMRCommon.h is a utility header written for that example. To duplicate it in Python, you have to rewrite it I am afraid.
> 
> Best,
> -berk
> 
> On Fri, Jun 12, 2015 at 12:18 PM, Magician <f_magician at mac.com <mailto:f_magician at mac.com>> wrote:
> Hi Berk,
> 
> 
> Thanks for your advice. I missed the examples.
> I'm now tracing Generate3DAMRDataSetWithPulse.cxx with Python.
> 
> And now I have other questions.
> 
> - The example includes vtkAMRBox class, but I can't find it
>   in vtk or any other submodule on Python.
>   How can I use it?
> 
> - Some methods are provided by AMRCommon.h.
>   Can I use these methods with Python?
> 
> 
> Magician
> 
> 
>> On Jun 12, 2015, at 04:41, Berk Geveci <berk.geveci at kitware.com <mailto:berk.geveci at kitware.com>> wrote:
>> 
>> Hi Magician,
>> 
>> Did you look at the examples in Examples/AMR/Cxx?
>> 
>> Best,
>> -berk
>> 
>> On Wed, Jun 10, 2015 at 8:49 AM, Magician <f_magician at mac.com <mailto:f_magician at mac.com>> wrote:
>> Hi all,
>> 
>> 
>> I'd like to define vtkHierarchicalBoxDataSet objects on VTK 6.2.0.
>> But there are few informations to do it.
>> 
>> Can I get any complete sample codes written in Python or C++?
>> 
>> 
>> Magician
>> _______________________________________________
>> Powered by www.kitware.com <http://www.kitware.com/>
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html <http://www.kitware.com/opensource/opensource.html>
>> 
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
>> 
>> Search the list archives at: http://markmail.org/search/?q=vtkusers <http://markmail.org/search/?q=vtkusers>
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers <http://public.kitware.com/mailman/listinfo/vtkusers>
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150619/2b379100/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExamplesAMRCxxGenerate3D.py
Type: text/x-python-script
Size: 4886 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150619/2b379100/attachment-0002.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150619/2b379100/attachment-0005.html>


More information about the vtkusers mailing list