CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] get coordinate bounds of a stl from ParaView using Python

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2014, 10:36
Smile get coordinate bounds of a stl from ParaView using Python
  #1
Member
 
Richardpluff
Join Date: May 2014
Posts: 95
Rep Power: 12
CRI_CFD is on a distinguished road
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.
Attached Images
File Type: png bounds.png (2.5 KB, 78 views)
CRI_CFD is offline   Reply With Quote

Old   September 15, 2019, 15:11
Default
  #2
New Member
 
Join Date: Jun 2013
Posts: 3
Rep Power: 13
hancock is on a distinguished road
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
hancock is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:17.