<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Dev's<br>
<br>
I found out that the issue was not the writer, but the data...<br>
I had some data, but only points, and not triangles. So I could
write them down to a .vtk file, but not .stl file.<br>
Triangulate has done the job. <br>
I have updates the code below if someone is interestd.<br>
<br>
Thanks anyway!<br>
Laurent.<br>
<br>
<br>
________________<br>
#Here is the code:<br>
<br>
from paraview.simple import *<br>
from paraview.vtk import *<br>
from paraview.util import *<br>
from math import *<br>
import paraview.vtk.io as vtk_io<br>
<br>
MathObject = vtk.vtkMath()<br>
<br>
exportCylinderFilename = ""D:/Work/Axis.stl"<br>
<br>
#1st method using paraview filters<br>
LineSourcePV = Line(guiName = "Axis")<br>
LineSourcePV.Point1 = LineUp[0],LineUp[1], LineUp[2] #points are OK<br>
LineSourcePV.Point2 = LineDown[0],LineDown[1], LineDown[2]<br>
<br>
tube = Tube()<br>
tube.Radius = 2<br>
tube.NumberofSides = 32<br>
tube.UpdatePipeline()<br>
tube.Capping = 1<br>
SetActiveSource(tube)<br>
<br>
Triangulate = Triangulate()<br>
Triangulate.UpdatePipeline()<br>
Show(Triangulate)<br>
<br>
stlWriter = PSTLWriter()<br>
stlWriter.FileName = exportCylinderFilename <br>
stlWriter.Input = Triangulate<br>
stlWriter.FileType = 1<br>
stlWriter.UpdatePipeline()<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
<font size="1">Please consider environmental impact before
printing documents</font></div>
</body>
</html>