[cad-linux] Re: CAD with server/client architecture

  • From: Roland Krause <rokrau@xxxxxxxxx>
  • To: cad-linux@xxxxxxxxxxxxx
  • Date: Mon, 12 May 2003 18:41:29 -0700 (PDT)

Ray,
here is something that I've set up to get started as an experiment for
connecting a SQL database (MySQL in this case) with a simple
application. Please, noone misunderstand this to be a project. 

It is a prototype only and as someone said earlier "It is easy to start
something but much harder to maintain it". 

The *only* thing I am interested in at this point, is the connection of
a program to a database, in this case MySQL. With this little
testprogram, I will be able to add and delete points from a database,
that's all and as such nothing exiting - yet. 

In order to get started and this is mainly intended for myself I have
decided on the following
Language is going to be C++, that's all I know, except Fortran and you
dont want Fortran, believe me. 
Toolkit is going to be Qt, it has SQL classes already, so a no brainer
to me. 
Development platform is dual, i.e. KDevelop IDE on Linux (I have RH8,
Suse and Mandrake) and MSVC6 on Windows, those are what I know best and
use everyday. License is going to be LGPL. Not that anyone could use 
this code at this point anyway.

I would like to find out a few things from this. 

1 Database design. 
This is where everyone here can not only help but also contribute. A
parametrical solid modelling kernel that is backed up by a relational
database needs carefully designed. I've seen many ideas floating today,
but this is the central point for now. How are the tables going to look
like? What does one need. Brep or CSG or a mix. If Brep which one,
Radial Edge, Winged Edge etc. there are many, many choices. Geometry
and Topology need to be defined. The trick is to get this right w/o
making it too complicated from the beginning. It's got to be layered
the right way. I've got no idea how parameters could be handled for
example but thinking about it a RDB seems almost ideal for this. 

2 Connection Database - SM Kernel
This is tricky stuff and extremely tedious work. Can OpenCascade be
utilized for this? Are there alternatives? Would a system from scratch
make sense at all? 

3 Frontend
Well TomCAD comes to mind almost immediately, especially since the
author is present here. Python makes good frontends I hear. Never tried
it myself for lack of time, but I claim that I can do it in C++ just as
fast :-). 

So after having spent an afternoon learning how to setup and admin
MySQL on my RH box (Webmin is highly recommended here), I have a little
package that I append for those interested, it doesnt do much anything
yet but I'll use it as a basis. 

Roland

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-tbz
-- File: kosmos.051203.tar.bz2
-- Desc: kosmos.051203.tar.bz2



Other related posts: