Re: CAD Drawing
From: Cablewizard (Cablewizard_at_Yahoo.com)
Date: 08/04/04
- Next message: Ken Beauchesne: "Draw formatted text"
- Previous message: Sam: "Re: CAD Drawing"
- In reply to: Sam: "Re: CAD Drawing"
- Next in thread: Sam: "Re: CAD Drawing"
- Reply: Sam: "Re: CAD Drawing"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 11:31:53 -0600
Sam,
Well, in .Net you could pretty much use anything you want, as long as it exposes
a Graphics object, which is most everything. I've used picture boxes and panels
mostly. To give a pseudo MDI feel, I even tried a child form, which worked
pretty good. Pro's and Con's of each. But to start with, I would proly recommend
sticking with a picture box for now. But it is indeed different than the VB6
one. Maybe someone else could recommend more options I'm not aware of.
I have decided that at some point in the future, I will create a custom "Canvas"
or "View" control, and handle everything myself. It will hold key things
internally like perspective, transformation parameters, geographic projection,
origin, extents, etc. That way I could just pass in references to my
CAD/Geometry Objects classes, and have it intelligently render. But I think that
will be a monumental task so it is on the far back burner for now.
Gerald
"Sam" <qdo@datawave.ca> wrote in message
news:eBhSrGkeEHA.2440@tk2msftngp13.phx.gbl...
> Gerald,
>
> Thanks for the tips. I saw some people used picture box control to draw
> wireframe in VB6; what would you recommend me with .Net? I want use picture
> box control to do this because I'm more familiar with it but some of the
> features of the picture box control in VB6 such as ScaleMode have
> disappeared.
>
> Sam
>
> "Cablewizard" <Cablewizard@Yahoo.com> wrote in message
> news:OW4$2CZeEHA.3632@TK2MSFTNGP09.phx.gbl...
> > Sam,
> >
> > Well, you will definitely need to become intimately acquainted with
> > transformation matrices. You should take a look at www.magic-software.com.
> There
> > are a number of resources that you should find helpful. There are a number
> of
> > books on the subject, but most of them are IMHO very poor. Oftentimes they
> read
> > something like 1. This is a line. 2. This is how to perform back face
> culling in
> > 3D using wiremeshes. And they skip all the stuff you really need to know.
> > Another interesting note, is that the majority of the books I've seen just
> end
> > up referring back to stuff on the magic-software site anyway. The best
> book I
> > have found so far is Geometric Tools for Computer Graphics. You can find
> info
> > about it on that site as well. It is not terrific, but the best one I've
> found
> > so far. In fact, I have had the itch to write a Dummies Guide to
> Computational
> > Geometry. Too bad there's little money in writing these types of books.
> :-(
> >
> > Another thing that might help...
> > If you have access to a CAD package, you should really play around with
> coding
> > in there, this way you can see the results of things much easier. Then
> once you
> > feel you have a good grasp on the concepts of view and such, then start
> coding
> > your own. In my spare time I have been working on a Geometry Objects
> framework
> > for dealing with simple vector objects. If you find certain things you
> need, I
> > might have some classes I may be willing to share. As far as rendering, it
> won't
> > do that yet, as I am just now getting into this myself and am learning a
> lot.
> > Mostly what not to do :-) But it helps tremendously when interoperating
> with
> > ArcView, AutoCAD, and Microstation.
> >
> > If you have any specific questions, feel free to let me know.
> >
> > Gerald
> >
> > "Sam" <qdo@datawave.ca> wrote in message
> > news:%23PEOPsYeEHA.3632@TK2MSFTNGP09.phx.gbl...
> > > Hi Gerald
> > >
> > > For the math part, I think I'm ok. For the coding part such as
> coordinates
> > > system, grid lines/points zoom in and out function, I'm stuck. I find
> this
> > > complicated because when user zoom in/out the units on coordinate system
> > > change
> > >
> > > Sam
> > >
> > >
> > > "Cablewizard" <Cablewizard@Yahoo.com> wrote in message
> > > news:ug4iYgYeEHA.3840@TK2MSFTNGP10.phx.gbl...
> > > > Personally, I do not know of any "good" sites to help you along.
> > > > When you say you have never done this before, do you mean coding such
> a
> > > thing,
> > > > and/or the math behind it? This might help me lead you in the proper
> > > direction.
> > > > You will quickly find out that CAD/Vector graphics can be very
> different
> > > than
> > > > normal GUI graphics.
> > > >
> > > > > 2. Is VB.Net GDI+ robust enough to do the job
> > > > This is a loaded question. It really depends on your needs. As far as
> > > VB.Net, it
> > > > should be, but might depend on how you end up implementing the
> > > presentation
> > > > layer. If you use GDI (not +), you would want to look into C++, maybe
> C#.
> > > As far
> > > > as GDI+, it depends on how you use it. You might want to look at
> > > DirectDraw. But
> > > > you may find it to be more trouble than what you need.
> > > >
> > > > Gerald
> > > >
> > > >
> > > >
> > > > "Sam" <qdo@datawave.ca> wrote in message
> > > > news:OZn6OQYeEHA.596@TK2MSFTNGP11.phx.gbl...
> > > > > Hello everyone
> > > > >
> > > > > I want to write a quick 2D/3D CAD application (I have never done
> this
> > > > > before) which reads data (such as coordinates) from a text file and
> draw
> > > > > grid lines/points on screen (this application does not display any
> > > bitmap
> > > > > image. It basically displays lines and points). The application also
> has
> > > > > zoom in/out functions, rotate wire-frames around, and origin of the
> x-y
> > > > > coordinate system near the bottom left corner of the screen (not top
> > > left).
> > > > >
> > > > > 1. Does anyone know any websites or have articles on this subject
> > > > > 2. Is VB.Net GDI+ robust enough to do the job
> > > > >
> > > > >
> > > > > Sam
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Ken Beauchesne: "Draw formatted text"
- Previous message: Sam: "Re: CAD Drawing"
- In reply to: Sam: "Re: CAD Drawing"
- Next in thread: Sam: "Re: CAD Drawing"
- Reply: Sam: "Re: CAD Drawing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|