<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear VTK users,
<br>
<br>
I would like to use a cylindrical implicit function in order to produce a triangulated cylindrical mesh. Looking at the testing example extractPolyData.tcl , which includes the code below, I see both a cylindrical function used as implicit function, as well
as a sphere source which is used in conjunction with SetInputConnection. Can someone illuminate me on what purpose is served by the latter?
<br>
<br>
If not, how can I produce a triangulated surface mesh of a cylinder, e.g. vtkCylinder?
<br>
<div><br>
Here is the relevant code in the tcl test file. <br>
<br>
vtkSphereSource sphere<br>
sphere SetThetaResolution 8<br>
sphere SetPhiResolution 16<br>
sphere SetRadius 1.5<br>
<br>
# Extraction stuff<br>
vtkTransform t<br>
t RotateX 90<br>
vtkCylinder cylfunc<br>
cylfunc SetRadius 0.5<br>
cylfunc SetTransform t<br>
vtkExtractPolyDataGeometry extract<br>
extract SetInputConnection [sphere GetOutputPort]<br>
extract SetImplicitFunction cylfunc<br>
extract ExtractBoundaryCellsOn<br>
<br>
vtkPolyDataMapper sphereMapper<br>
sphereMapper SetInputConnection [extract GetOutputPort]<br>
sphereMapper GlobalImmediateModeRenderingOn<br>
<br>
vtkActor sphereActor<br>
sphereActor SetMapper sphereMapper<br>
<br>
Thanks for your support. <br>
<br>
Michel<br>
<div><font face="Tahoma" size="2">Michel Audette, Ph.D. </font></div>
<div><font face="tahoma" size="2">Assistant Professor,</font></div>
<div><font face="tahoma" size="2">Department of Modeling, Simulation and Visualization Engineering,</font></div>
<div><font face="tahoma" size="2">Old Dominion University,</font></div>
<div><font face="Tahoma" size="2">Norfolk, VA.</font></div>
<div><font face="tahoma" size="2"></font> </div>
</div>
</div>
</body>
</html>