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

[General] Loading .stl file with python shell in paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2017, 17:18
Default Loading .stl file with python shell in paraview
  #1
New Member
 
MASc Student
Join Date: Sep 2016
Posts: 25
Rep Power: 9
New-to-CFD is on a distinguished road
Hey there,

Having trouble loading an .stl file using python in paraview, very new to python syntax.

I have an object named object.stl and am attempting to bring into paraview using:

paraview.simple.STLReader(object.stl) but am unsure what to actually include in the brackets or how to specify to load that .stl file...please help!!
New-to-CFD is offline   Reply With Quote

Old   May 23, 2017, 03:34
Default
  #2
New Member
 
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9
beral is on a distinguished road
Activate the tracing function (Tools -> Start Trace), open the stl in the GUI with File -> Open). Stop tracing (Tools -> Stop Trace). In the opened window you see the python code for what you did in the GUI. This code can be used in the ParaView Python Shell.

And go through the tutorial (see other post), this will save you a lot of time and stress.
beral is offline   Reply With Quote

Old   May 23, 2017, 12:31
Default
  #3
New Member
 
MASc Student
Join Date: Sep 2016
Posts: 25
Rep Power: 9
New-to-CFD is on a distinguished road
much appreciated ill have a look
New-to-CFD is offline   Reply With Quote

Reply

Tags
paraview, python, render, stl


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53


All times are GMT -4. The time now is 09:02.