[vtkusers] Fwd: vtkTubeFilter Side/Border Thickness

Fauze Polpeta fauze.polpeta at gmail.com
Mon Apr 12 13:31:46 EDT 2010


Hi;

Like a glove. Thank you.

Fauze

Ps.: Previously clicked only on "Reply" instead of "R. To All". Sorry for that.


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



More information about the vtkusers mailing list