To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.mlcadOpen lugnet.cad.mlcad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / MLCad / 595
594  |  596
Subject: 
Progress DAT->POSTSCRIPT !!!
Newsgroups: 
lugnet.cad.mlcad
Date: 
Thu, 16 Nov 2000 22:27:03 GMT
Viewed: 
1623 times
  
Hello to all,

Finally, I have some great progress in the dat->postscript conversion.
I figured out how to use the .dat file and displaying the part. For now my
test part is the tile part (only boxes and lines, 3070.dat). I also managed to
get one of the tile's box into postscript format. So I understandly the basics
of the whole conversion proces.

Here is  a very small postscript sample:

% Dat2Ps program Version 0.1 copyright G.Heunen
% 16/11/2000
/Times-Roman findfont
20 scalefont
setfont
newpath
200 200 moveto
(DAT2PS Version 0.1) show
newpath
138 171 moveto
183 102 lineto
104 102 lineto
59 171 lineto
closepath
stroke
newpath
138 171 moveto
117 134 lineto
38 134 lineto
59 171 lineto
closepath
stroke
newpath
59 171 moveto
38 134 lineto
83 66 lineto
104 102 lineto
closepath
stroke
newpath
104 102 moveto
83 66 lineto
162 66 lineto
183 102 lineto
closepath
stroke
newpath
183 102 moveto
162 66 lineto
117 134 lineto
138 171 lineto
closepath
stroke
showpage

The program is still not final, because I am still not able to do more parts at
once. However I would like to know from the lugnet community what they think
the program should. With this in mind, programming might be easier.

Furthermore, I would like to know the following from Michael.

Could you give me details on the following:

How do you deal with all the *.dat information within a model? (Do you read
just once a part or read them always?)

If you want to change the orientation of the model, how do you erase the old
drawing? (I use a Image component within delphi, but I don't find how to erase
the old drawing when changing the orientation?)

How do you determine what face has to be fully drawn and the bac face/side not?

Could you give me colour specifications MLCad<->RGB(?)?

Why are there the same lines (2-points) corresponding to quadrilateral lines
(4-points) in for example box5.dat? In my postscript example the quadrilateral
(4) are draw but without the filling command. The lines (2)are not in yet.

Guido



Message has 1 Reply:
  Re: Progress DAT->POSTSCRIPT !!!
 
Guido Heunen <heunen@crys.chem.uva.nl> schrieb in im Newsbeitrag: G452D3.CMF@lugnet.com... (...) managed to (...) basics (...) Great :-) (...) <SNIP> (...) read (...) I read every part just once and cache it in the ram. Parts only reference other (...) (24 years ago, 17-Nov-00, to lugnet.cad.mlcad)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR