# vtkGlyph3DMapper::ScaleMode: mismatch between header and source files

**URL:** https://discourse.vtk.org/t/vtkglyph3dmapper-mismatch-between-header-and-source-files/741
**Category:** Support
**Created:** [April 11, 2019, 2:43pm UTC](https://discourse.vtk.org/t/vtkglyph3dmapper-mismatch-between-header-and-source-files/741 "2019-04-11T14:43:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Haocheng\_Liu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/haocheng_liu/32/258_2.png) [@Haocheng\_Liu](https://discourse.vtk.org/u/Haocheng_Liu)
#### Post date: [April 11, 2019, 2:43pm UTC](https://discourse.vtk.org/t/vtkglyph3dmapper-mismatch-between-header-and-source-files/741/1 "2019-04-11T14:43:15Z")

</div>

vtkGlyph3DMapper [header](https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/Core/vtkGlyph3DMapper.h#L120) states that the default ScaleMode is `NO_DATA_SCALING`. However in the [source file](https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/Core/vtkGlyph3DMapper.cxx#L81), it’s set to `SCALE_BY_MAGNITUDE`.  
Question:

What should be the right default settings here?  
ParaView seems is able to handle the mismatch properly. Does PV override it to fit its own needs?  
I am working on a ParaView based application. In my case the glyphs I created is scaled by a mysterious amount. If I use `NO_DATA_SCALING` then it goes away. May I ask any sugguestions here?

@Dave_DeMarle The header documention is written by you in 2016 🙂 Any ideas?  
Thanks!

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave_demarle/32/6_2.png) [@Dave\_DeMarle](https://discourse.vtk.org/u/Dave_DeMarle)
#### Post date: [April 11, 2019, 5:08pm UTC](https://discourse.vtk.org/t/vtkglyph3dmapper-mismatch-between-header-and-source-files/741/2 "2019-04-11T17:08:31Z")

</div>

ParaView can apply its own default via the filters.xml files.  
I recall that glyphs were overhauled recently, the git history of the .h and .cxx will probably show they ended up with a mismatch.

---

<div class="post-metadata">

### Author: ![Haocheng\_Liu](https://discourse.vtk.org/user_avatar/discourse.vtk.org/haocheng_liu/32/258_2.png) [@Haocheng\_Liu](https://discourse.vtk.org/u/Haocheng_Liu)
#### Post date: [April 11, 2019, 7:00pm UTC](https://discourse.vtk.org/t/vtkglyph3dmapper-mismatch-between-header-and-source-files/741/3 "2019-04-11T19:00:59Z")

</div>

Related VTK [MR](https://gitlab.kitware.com/vtk/vtk/merge_requests/5393).
