[vtkusers] Fixes for vtkCubeAxesActor

Cory Quammen cory.quammen at kitware.com
Tue Mar 24 18:24:31 EDT 2015


Hi Serge,

Thank you for your patch. I wonder if you might have better luck submitting
your patch to the new GitLab review site for VTK.

https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/README.md

Thanks,
Cory

On Wed, Mar 18, 2015 at 4:56 PM, Serge Lalonde <serge at infolytica.com> wrote:

>  Hello VTK Users,
>
> Attached is a modified version of vtkCubeAxesActor (based on the VTK 6.1
> source) that fixes 2 problems that I ran into:
>
>    1. There's an incorrect tolerance check for 0 in BuildLabels() that
>    would cause ugly numbers such as "8.173e-018" to be displayed instead of 0.
>    The new check properly uses a relative tolerance based on the extents of
>    the axis values.
>    2. Implemented code to always respect the format specified by the user
>    that's set with Set*LabelFormat(). Previously, the user's format would get
>    overwritten in AdjustRange(). There's now an internal format (what was
>    there before) and a user format. The user format is NULL by default to
>    allow the internal format to be used but has precedence if set. This should
>    preserve previous functionality and there are no code changes required from
>    anyone using the class.
>
> I'd love to put it into the main Git repository, but the last time I
> tried, I had tons of problems checking in. David DeMarle and I are still
> working on it.
> If anyone would like to check it in, please be my guest.
> In the meantime, I hope that this will help others.
>  --
> www.infolytica.com
> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> (514) 849-8752 x236, Fax: (514) 849-4239
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150324/fe1462f1/attachment.html>


More information about the vtkusers mailing list