<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi all,</p>
<p> </p>
<p>I've got a problem to generate a simple ply file with 4 vertices.</p>
<p>Here how i proceed :</p>
<p> </p>
<p><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">//</span><span style="COLOR: #c0c0c0">
</span><span style="COLOR: #008000">Setup</span><span style="COLOR: #c0c0c0"> </span>
<span style="COLOR: #008000">points</span></p>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">points</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">vtkSmartPointer</span><span style="COLOR: #000000"><</span><span style="COLOR: #800080">vtkPoints</span><span style="COLOR: #000000">>::</span><span style="COLOR: #000000">New</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">//</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">Setup</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">the</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">colors</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">array</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">vtkSmartPointer</span><span style="COLOR: #000000"><</span><span style="COLOR: #800080">vtkUnsignedCharArray</span><span style="COLOR: #000000">>::</span><span style="COLOR: #000000">New</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">SetNumberOfComponents</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">3</span><span style="COLOR: #000000">);</span><span style="COLOR: #c0c0c0"> </span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">SetName</span><span style="COLOR: #000000">(</span><span style="COLOR: #008000">"Colors"</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">//</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">create</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">a</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">vertex</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertex</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">vtkSmartPointer</span><span style="COLOR: #000000"><</span><span style="COLOR: #800080">vtkVertex</span><span style="COLOR: #000000">>::</span><span style="COLOR: #000000">New</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">//</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">list</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">of</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">all</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">the</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">vertices</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">vtkSmartPointer</span><span style="COLOR: #000000"><</span><span style="COLOR: #800080">vtkCellArray</span><span style="COLOR: #000000">>::</span><span style="COLOR: #000000">New</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">/*</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">Create</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">a</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">PLY</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">Writer</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">*/</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">vtkSmartPointer</span><span style="COLOR: #000000"><</span><span style="COLOR: #800080">vtkPLYWriter</span><span style="COLOR: #000000">>::</span><span style="COLOR: #000000">New</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">//</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">Create</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">a</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">polydata</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">object</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">and</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">add</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">everything</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">to</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #008000">it</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">polydata</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">vtkSmartPointer</span><span style="COLOR: #000000"><</span><span style="COLOR: #800080">vtkPolyData</span><span style="COLOR: #000000">>::</span><span style="COLOR: #000000">New</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">polydata</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">SetPoints</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">points</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">polydata</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetVerts</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">polydata</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">GetPointData</span><span style="COLOR: #000000">()-></span><span style="COLOR: #000000">SetScalars</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">);</span></pre>
<p> </p>
<p>Then here how i create my vertices and how i set them :</p>
<p> </p>
<p><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">points</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">Resize</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">4</span><span style="COLOR: #000000">);</span></p>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">points</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetPoint</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">points</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetPoint</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">1</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">1.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">points</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetPoint</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">2</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">1.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">points</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetPoint</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">3</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">0.0</span><span style="COLOR: #000000">,</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000080">1.0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">Initialize</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">GetPointIds</span><span style="COLOR: #000000">()-></span><span style="COLOR: #000000">SetId</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextCell</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">GetPointIds</span><span style="COLOR: #000000">()-></span><span style="COLOR: #000000">SetId</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">1</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextCell</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">GetPointIds</span><span style="COLOR: #000000">()-></span><span style="COLOR: #000000">SetId</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">2</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextCell</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">GetPointIds</span><span style="COLOR: #000000">()-></span><span style="COLOR: #000000">SetId</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">3</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">vertices</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextCell</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">vertex</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">Initialize</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextTuple3</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">255</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextTuple3</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">255</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextTuple3</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">255</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">colors</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">InsertNextTuple3</span><span style="COLOR: #000000">(</span><span style="COLOR: #000080">255</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">255</span><span style="COLOR: #000000">,</span><span style="COLOR: #000080">255</span><span style="COLOR: #000000">);</span></pre>
<p><span style="COLOR: #c0c0c0"> </span></p>
<p><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">QString</span><span style="COLOR: #c0c0c0">
</span><span style="COLOR: #000000">plyFilePath</span><span style="COLOR: #c0c0c0">
</span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span>
<span style="COLOR: #008000">"output.ply"</span><span style="COLOR: #000000">;</span></p>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800080">std</span><span style="COLOR: #000000">::</span><span style="COLOR: #800080">string</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">filename</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">=</span><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #000000">plyFilePath</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">toStdString</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">SetFileName</span><span style="COLOR: #000000">(</span><span style="COLOR: #000000">filename</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">c_str</span><span style="COLOR: #000000">());</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetInputData</span><span style="COLOR: #000000">(</span><span style="COLOR: #800000">polydata</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><br></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetColorModeToUniformPointColor</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">SetArrayName</span><span style="COLOR: #000000">(</span><span style="COLOR: #008000">"Colors"</span><span style="COLOR: #000000">);</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000">SetFileTypeToASCII</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #c0c0c0"> </span><span style="COLOR: #800000">plyWriter</span><span style="COLOR: #000000">-></span><span style="COLOR: #000000; FONT-STYLE: italic">Write</span><span style="COLOR: #000000">();</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">I've checked that the 4 vertex are well displayed (cf screenshot).</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">Unfortunately, my ply file shows 0 vertex.</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">ply<br>format ascii 1.0<br>comment VTK generated PLY File<br>obj_info vtkPolyData points and polygons: vtk4.0<br>element vertex 0<br>property float x<br>property float y<br>property float z<br>property uchar red<br>property uchar green<br>property uchar blue<br>element face 0<br>property list uchar int vertex_indices<br>end_header</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">I'm using vtk 6.3.</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">If someone has already meet this problem or know the solution ...</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">Thanks for your time,</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">Best regards,</span></pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000"></span> </pre>
<pre style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><span style="COLOR: #000000">David MOUSSAUD.</span></pre>
</div>
</body>
</html>