|
[Sponsors] |
[General] Loading .stl file with python shell in paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2017, 18:18 |
Loading .stl file with python shell in paraview
|
#1 |
New Member
MASc Student
Join Date: Sep 2016
Posts: 25
Rep Power: 10 |
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!! |
|
May 23, 2017, 04:34 |
|
#2 |
New Member
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9 |
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. |
|
May 23, 2017, 13:31 |
|
#3 |
New Member
MASc Student
Join Date: Sep 2016
Posts: 25
Rep Power: 10 |
much appreciated ill have a look
|
|
Tags |
paraview, python, render, stl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |