|
[Sponsors] |
[General] get coordinate bounds of a stl from ParaView using Python |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 10, 2014, 10:36 |
get coordinate bounds of a stl from ParaView using Python
|
#1 |
Member
Richardpluff
Join Date: May 2014
Posts: 95
Rep Power: 12 |
Hello everyone,
I want to get the bounds of x, y and z coordinates from ParaView when I import an .stl file (see attachments, this is shown below the pipeline browser, in the Information tab) from a Python script. Does anybody know how can I do that? In another formats I did: object.GetDataInformation().GetBounds() but if I do that now I obtain very high ranges(for example 1e266 as the upper bound for x,y and z), which is clearly wrong. Any hints? It looks easier but I have no idea about how to do it. I googled it in several ways and I didn't find a suitable answer. HELP PLEASE!!!!! Thanks. |
|
September 15, 2019, 15:11 |
|
#2 |
New Member
Join Date: Jun 2013
Posts: 3
Rep Power: 13 |
Hi this may be too late but will be helpful to others
object.GetDataInformation().GetBounds() is giving garbage value since it has not been updated. Update is by the following command and then ask for bounds objectDisplay = Show(object, renderView1) bound = object.GetDataInformation().GetBounds() cheers |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 22:00 |
[General] Listing the inputs of a grouped dataset with a programmable python filter in Paraview | NadineHS | ParaView | 3 | December 12, 2021 15:54 |
[OpenFOAM] Paraview python API? | me3840 | ParaView | 0 | January 23, 2016 21:17 |
Python support when building Paraview ? | francois | OpenFOAM Installation | 2 | June 16, 2014 16:37 |
How to get Python Shell into ParaView 3.8.1? | blaise | OpenFOAM Installation | 3 | July 24, 2012 05:58 |