[vtkusers] Using Glyphs
Randy Heiland
heiland at ncsa.uiuc.edu
Fri Apr 13 08:18:47 EDT 2001
On Apr 12, 9:13pm, VovaJ at netscape.net wrote:
> Subject: [vtkusers] Using Glyphs
> Hello! I have build an implicit surface using vtkSampleFunction.
> And I extracted an triangulated surface from it using vtkContourFilter.
> vtkContourFilter *contour =vtkContourFilter::New();
> contour->SetInput(spline->GetOutput());
> contour->SetValue(0,0.0);
> Afterwards I try to glue a small Cones to it, using vtkGlyph3D,
>
> vtkConeSource *cone = vtkConeSource::New();
> vtkGlyph3D *glyph = vtkGlyph3D::New();
> glyph->SetInput(deci->GetOutput());
> glyph->SetSource(cone->GetOutput());
> glyph->SetVectorModeToUseNormal();
> glyph->SetScaleModeToScaleByVector();
> glyph->SetScaleFactor(0.20);
>
> but they are oriented to the inside of the surface, not to outside.
> How can i fix it?
Sounds like you need to insert a vtkReverseSense into your pipeline (operating
on the contour normals) and set ReverseNormalsOn().
--Randy
More information about the vtkusers
mailing list