# Are there vtkCylinderSource options for hexagon glyph tiled structuredGrid?

**URL:** https://discourse.vtk.org/t/are-there-vtkcylindersource-options-for-hexagon-glyph-tiled-structuredgrid/7481
**Category:** Support
**Created:** [December 23, 2021, 7:51am UTC](https://discourse.vtk.org/t/are-there-vtkcylindersource-options-for-hexagon-glyph-tiled-structuredgrid/7481 "2021-12-23T07:51:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Joel\_Mckay](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joel_mckay/32/4443_2.png) [@Joel\_Mckay](https://discourse.vtk.org/u/Joel_Mckay)
#### Post date: [December 23, 2021, 7:51am UTC](https://discourse.vtk.org/t/are-there-vtkcylindersource-options-for-hexagon-glyph-tiled-structuredgrid/7481/1 "2021-12-23T07:51:36Z")

</div>

The issue with this example is the Rotate in the pipeline causes the whole grid to move on render.  
Cheers, =)  
J

```auto
vtkSmartPointer<vtkActor> PointToGlyphHexagon(vtkPoints* points, double const& scale)
{
  auto bounds = points->GetBounds();
  double maxLen = 0;
  for (int i = 1; i < 3; ++i)
  {
    maxLen = std::max(bounds[i + 1] - bounds[i], maxLen);
  }

  vtkNew<vtkCylinderSource> hexSource;
  double wallSz=(scale * maxLen);
 hexSource->SetHeight(wallSz);
 hexSource->SetRadius(wallSz);
 hexSource->SetResolution(6);
  
  vtkNew<vtkPolyData> pd;
  pd->SetPoints(points);

  vtkNew<vtkGlyph3DMapper> mapper;
  mapper->SetInputData(pd);
  mapper->SetSourceConnection(hexSource->GetOutputPort());
  mapper->ScalarVisibilityOff();
  mapper->ScalingOff();

  vtkNew<vtkActor> actor;
  actor->SetMapper(mapper);
 // actor->RotateX(90.0);
 // actor->RotateY(-30.0);
  
  return actor;
}

```
