Author Topic: Editing values/updating  (Read 10718 times)

simplex

  • Newbie
  • *
  • Posts: 6
    • View Profile
Editing values/updating
« on: March 18, 2010, 11:34:56 PM »
Hi Andreas,

Following are two bug reports for WinFIG 4.4:

1. After drawing a circle (by specifying radius or diameter), I would like to manually change the value of the radius/diameter to a specified value so I click "Values...".

When I try to modify either radius 1 or diameter 1 by typing in a new value, after I press enter, half of the time a random new value is used which is very close to the one I typed.

Sometimes I have to modify the value 3 times before the random "error" goes away and I end up with the precise value I wanted.

2. The "UPDATE" button on the main toolbar does not seem to apply to circles.

This means that when I want to scale a compound object, but keep the radii of the circles fixed, I have to manually go back and modify the "Values..." menu for each circle in the compound object. In conjunction with bug (1) this takes a lot of time to do.

While fixing bug (2) would help, I can't help observing that maybe an option to scale only (x,y) coordinates would also be useful (keeping other attributes fixed, e.g. radius).

Well that's all. Thanks, and keep up the good work.

Andreas

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Editing values/updating
« Reply #1 on: March 21, 2010, 12:13:27 AM »
When I try to modify either radius 1 or diameter 1 by typing in a new value, after I press enter, half of the time a random new value is used which is very close to the one I typed.

That can happen, because WinFIG has a discrete precision of 1200 dpi. That means many values must be rounded. For instance a diameter of 1 cm is changed to 0,9991 cm.

The reason is: 1 inch has 1200 dots in WinFIG, so 1cm has 1200/2.54 = 472.4409449 dots, which must be rounded to 472, because WinFIG stores coordinates in discrete values.

When you call the dialog the next time WinFIG makes the reverse calculation from dots to cm: (472 / 1200) * 2,54 = 0,9990666666, which is rounded to  0,9991 cm

The problem should occur less when working with imperial coordinates, but it can still happen, i.e. 0.9123in is 1094.76 points and would be rounded to 1095 points, which again displays as 0.9125in.

0.9123 * 1200 = 1094.76
1095 / 1200 = 0.9125

Quote
Sometimes I have to modify the value 3 times before the random "error" goes away and I end up with the precise value I wanted.

Yes, I have seen that there are rounding errors that occur even when a coordinate translates into a non-fractional number in a 1200 dpi system. I will try to find out what the reason is. This is always tricky due to the mixture of discrete coordinates and floating point calculations.

Quote
2. The "UPDATE" button on the main toolbar does not seem to apply to circles.

This is something I cannot replicate. It works fine here. If you mean the radius is not copied, that's right. You can find the attributes being copied int the list of check boxes on the right tool bar.

Quote
This means that when I want to scale a compound object, but keep the radii of the circles fixed, I have to manually go back and modify the "Values..." menu for each circle in the compound object. In conjunction with bug (1) this takes a lot of time to do.

That means you want to scale a compound but not the circles inside it?

Quote
While fixing bug (2) would help, I can't help observing that maybe an option to scale only (x,y) coordinates would also be useful (keeping other attributes fixed, e.g. radius).

ok, yes, that is something I could implement. The scaling would then just change the distribution of the circles.
This forum belongs to www.schmidt-web-berlin.de/winfig

simplex

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Editing values/updating
« Reply #2 on: March 22, 2010, 09:17:41 PM »

Quote
2. The "UPDATE" button on the main toolbar does not seem to apply to circles.

This is something I cannot replicate. It works fine here. If you mean the radius is not copied, that's right. You can find the attributes being copied int the list of check boxes on the right tool bar.

Thanks for pointing that out Andreas! I feel a little silly now...

Though, I seem to recall that earlier versions of winFIG would copy the radius. Is that a reasonable feature to implement again?

Andreas

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: Editing values/updating
« Reply #3 on: March 23, 2010, 12:51:56 AM »
Though, I seem to recall that earlier versions of winFIG would copy the radius. Is that a reasonable feature to implement again?

It's a possible feature, but not with a igh priority, because there is an easy workaround. Let's say you have a small green circle and a big red circle. You want to make the small circle as big as the red one, but keep its color and other attributes:

1. copy the red circle. This creates an identical red copy, but you want to have it green.
2. So, click on the green circle. This gets the current attributes.
3. update the new red circle, usng the "update" tool, so it turns green and also gets all other attributes from the small circle
4. delete the small green circle

Sounds more tricky than it is.
This forum belongs to www.schmidt-web-berlin.de/winfig