[vtkusers] How to generate a surface normal glyph for a triangle cell

Amy Squillacote ahs at cfdrc.com
Wed Oct 8 08:56:05 EDT 2008


For glyphying, try using vtkGlyph3D 
(http://www.vtk.org/doc/release/5.2/html/a00508.html). On your instance 
of that filter, call OrientOn() (from the online documentation -- Turn 
on/off orienting of input geometry along vector/normal.). Also, call 
SetVectorModeToUseVector() or SetVectorModeToUseNormal() -- depending on 
whether the normal vectors you've created are stored as "vectors" or 
"normals".

- Amy

Miguel Angel Rodriguez Florido wrote:
>     Please, check the example that I said to you. If this example 
> doesn't help you, check the vtkTransform examples.
>
>     Best.
>     Hth.
>
> Elvis Dowson wrote:
>> Hi Miguel,
>>                       I've got the Visualization Toolkit book (2nd & 
>> 3rd editions) but not the VTK User's Guide.
>>
>> I'm also going through the doxygen pages, and samples, etc, but the 
>> thing is somethings some of these basic things just escape me! I 
>> don't know if this solution is documented in the VTK User's Guide, 
>> but I am hoping posting to the user group might yield a solution.
>>
>> For example, I managed to get the tcl code working, with a plane 
>> surface and generated the arrow glyph, but it's pointing in the wrong 
>> direction. I was hoping someone could help me correct it.
>>
>> Best regards,
>>
>> Elvis Dowson
>>
>>
>> On Oct 8, 2008, at 2:43 PM, Miguel Angel Rodriguez Florido wrote:
>>
>>>     Hi Elvis,
>>>
>>>     I sent you the book just to give you a general overview of vtk, 
>>> because I guess that you need to read something about VTK to work 
>>> properly. Also, if you can buy the "vtk user's guide", I think that 
>>> it would be very useful for you.
>>>
>>>     In reference to the glyphs, check the examples in the doxygen 
>>> help at www.vtk.org . In particular: 
>>> VTK/Examples/VisualizationAlgorithms/Tcl/spikeF.tcl
>>>
>>>     Best.
>>>     Hth.  
>>> Elvis Dowson wrote:
>>>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list