Hi again,<br><br>I didn't manage to reproduce the black capping. But my feeling <br>about normals was not so far away from the truth: My advice is that<br>you plug a vtkPolyDataNormals to the output of vtkThickTubeFilter<br>
in order to get consistent normals all around the tube.<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">2010/4/12 Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">[I forward to the mailing list]<br><br>You are right: I didn't implement any CellData management. PointData<br>
are managed by the internal vtkTubeFilters.<br>What do you think is the better CellData to add to the output? <br>
<br>Another thing is that the cell points (triangles) are ordered in the <br>same way for both extremities. Thus the cell normals should have<br>the same orientation: for one of the two cappings, normal will point<br>inside the caneloni. Maybe lightnings are mistaken because of that.<br>
<br>I will give a look.<br>Jerome<br><br><div class="gmail_quote">2010/4/12 Fauze Polpeta <span dir="ltr"><<a href="mailto:fauze.polpeta@gmail.com" target="_blank">fauze.polpeta@gmail.com</a>></span><div><div></div>
<div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Indeed, I think it is originally black. (not becomes).<br>
<br>
So when angle of vision is perpendicular to the ring, you just see the<br>
black capping.<br>
<br>
Sorry if this caused a misunderstanding.<br>
<font color="#888888"><br>
Fauze<br>
</font><div><div></div><div><br>
On Mon, Apr 12, 2010 at 11:29 AM, Fauze Polpeta <<a href="mailto:fauze.polpeta@gmail.com" target="_blank">fauze.polpeta@gmail.com</a>> wrote:<br>
> Hi;<br>
><br>
> Quite nice filter Jérôme.<br>
><br>
> One thing I noticed is => the capping you do "manually" does not<br>
> provide the same result as the capping implemented in the ordinary<br>
> vtkTubeFilter. When the camera is positioned in a way that the ring is<br>
> perpendicular to our angle of vision, the capping surface of the ring<br>
> becomes black.<br>
><br>
> Is there a way to make the capping surface of your filter to inherit<br>
> the color that is set by means of the actor that the filter is<br>
> mapped/connected to? (i.e. ringActor->GetProperty()->SetColor)<br>
><br>
> Regards<br>
><br>
> Fauze<br>
><br>
> On Sat, Apr 10, 2010 at 10:56 AM, Jérôme <<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> I updated the licence (BSD) and commented the filter. You will<br>
>> find it here:<br>
>> <a href="http://github.com/jeromevelut/" target="_blank">http://github.com/jeromevelut/</a><br>
>><br>
>> The 'vtkKinship' git repo is what interests you: get it, compile it<br>
>> with CMake. The filter vtkThickTubeFilter produces the latter<br>
>> screenshot.<br>
>><br>
>> It is simply based on 2 vtkTubeFilters and a custom capping. So<br>
>> it takes as input any polydata, assuming they have polylines.<br>
>> It means that vtkLineSource is suitable for this filter. I tried with<br>
>> vtkSplineSource under ParaView and created funny macaroni !<br>
>><br>
>> Feel free to ask any questions regarding that filter/repo<br>
>><br>
>> Jerome<br>
>><br>
>> 2010/4/10 Fauze Polpeta <<a href="mailto:fauze.polpeta@gmail.com" target="_blank">fauze.polpeta@gmail.com</a>><br>
>>><br>
>>> Hi Jérôme<br>
>>><br>
>>> This is exactly what I'm looking for. Please, let me know when<br>
>>> available and how to download.<br>
>>><br>
>>> Was this pipe built from a vtkLineSource? If not, would I still be<br>
>>> able to positioning it by relying on the coordinates of two 3D points?<br>
>>> Or do I need to use vtkTransform?<br>
>>><br>
>>> Thanks for your courtesy<br>
>>><br>
>>> Fauze<br>
>>><br>
>>> On Fri, Apr 9, 2010 at 7:20 PM, David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>><br>
>>> wrote:<br>
>>> > On Fri, Apr 9, 2010 at 6:14 PM, Jérôme <<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>> wrote:<br>
>>> >> Hi,<br>
>>> >><br>
>>> >> I attached a screenshot of a filter of mine that builds what I think<br>
>>> >> you are<br>
>>> >> looking for... If this is what you, just tell me: I just have to put<br>
>>> >> some<br>
>>> >> licence info<br>
>>> >> in my github lib, then you can get it.<br>
>>> >><br>
>>> >> HTH<br>
>>> >> Jerome<br>
>>> ><br>
>>> > That is definitely what he was looking for. Jermoe - you should<br>
>>> > definitely send it to the devel list and get it added to VTK.<br>
>>> ><br>
>>> > Thanks,<br>
>>> ><br>
>>> > David<br>
>>> ><br>
>><br>
>><br>
><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>