[Bf-committers] gpencil thresholds

Joshua Leung aligorith at gmail.com
Thu Jun 10 02:07:25 CEST 2010


Hi,

These two distance thresholds were initially added to avoid having
really closely spaced points.

IIRC, Manhattan distance was really meant to avoid having situations
where drawing in a straight line (this was before the straight line
tool) would end up adding too many points (i.e. smaller
jitter/hand-shake would be eliminated), while Euclidean distance would
get rid of cases where the mouse hovered over a spot for a while but
only just bumped a bit.

Originally both were just hardcoded, but later I found that different
the sensitivity for some people was too extreme for others.

Hopefully this helps,
Joshua

On Thu, Jun 10, 2010 at 11:43 AM, Mike Erwin <significant.bit at gmail.com> wrote:
> What is the purpose of grease pencil's Manhattan distance threshold? It
> would be simpler to use just the Euclidean distance, or not expose this at
> all. Is there some use case where Manhattan distance matters?
>
> Thanks for the info,
>
> Mike Erwin
> musician, naturalist, pixel pusher, hacker extraordinaire
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list