[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: [femm] zoomier

- To: femm@yahoogroups.com
- Subject: Re: [femm] zoomier
- From: David Meeker <dmeeker@ieee.org>
- Date: Mon, 14 Apr 2003 10:27:54 -0400
- In-reply-to: <5.1.1.5.2.20030411082341.047c9e00@email.cind.ornl.gov>
- References: <5.1.1.5.2.20030411082341.047c9e00@email.cind.ornl.gov>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3; MultiZilla v1.4.0.3G) Gecko/20030312

`Boyd Evans wrote:`

> `I am using femm to calculate forces on relatively small features and have
> found that I can't always zoom in as close as I need to. This is important
> when creating geometry, applying properties, and when selecting areas for
> results. I really enjoy the software otherwise.`

>     Thanks,
>     Boyd

`The reason that there is a limit on the zoom is that the program uses the "built-in" line drawing routines in Visual C++. (e.g. MoveTo, LineTo, etc.). The arguments to these functions are the end points of the lines in the problem's geometry in screen coordinates. Coordinates that are off-screen can be entered as arguments. If some part of the line passes through the viewable screen, that part is supposed to be plottted. These functions take 32-bit integers as the arguments for coordinates, but they seem to go berzerk if the coordinates sent to the routine are actually bigger than 16 bit values--go figure. To keep the display well-behaved, I've made the program limit the zoom so that none of the geometry ends up with screen coordinates larger than +-2^15. I suppose this was the lazy man's way to "fix" the problem.`
`I may be missing some obvious fix here--it wouldn't be the first time. Otherwise, it seems like one would have to write wrappers for the CDC plotting routines so that long lines and overly large objects get truncated before an attempt is made at plotting them.`

    Dave.
    --
    David Meeker
    email: dmeeker@ieee.org
    www: http://femm.berlios.de/dmeeker

- Follow-Ups:
  - Re: [femm] zoomier
    - From: Dave Squires <djsquires@plix.com>

- References:
  - zoomier
    - From: Boyd Evans <ev3@ornl.gov>

- Prev by Date: Re: [femm] Composition of magnetic materials
- Next by Date: Re: [femm] zoomier
- Previous by thread: zoomier
- Next by thread: Re: [femm] zoomier
- Index(es):
  - Date
  - Thread