To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7924
7923  |  7925
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Idea for a meta-statement
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 3 Oct 2002 08:07:17 GMT
Viewed: 
1010 times
  
In lugnet.cad.dev, Steve Bliss writes:
Here's my first pre-embryo of an LDDP plugin:
http://home.swipnet.se/simlego/ldraw/plug_lds.zip
So far, it is anything but impressive. It can only handle the LDS LINE
command, and without any error check at all.

But you want a filled polygon if I get you right?

Right.

Done. Here's a sample input:

0 132
0 234
POLYGON 14
0 0 1
0 10 1
10 10 1
10 -10 1
5 -13 1
polygon end
0

and the output:

0 132
0 234
0 LDS POLYGON 14
0 LDS 0 0 1
0 LDS 0 10 1
0 LDS 10 10 1
3 14   0 0 1   0 10 1  10 10 1
0 LDS 10 -10 1
3 14   0 0 1  10 10 1  10 -10 1
0 LDS 5 -13 1
3 14   0 0 1  10 -10 1  5 -13 1
0 LDS polygon end
0

Same URL:
http://home.swipnet.se/simlego/ldraw/plug_lds.zip (32kb)

(The "0 LDS..." lines are there for debugging purposes, and will be removed l8r)
/Tore



Message is in Reply To:
  Re: Idea for a meta-statement
 
(...) :D I was *hoping* someone would pick up on this. ;) (...) I don't have time to look right this second, but I will check it soon. (...) Right. (...) The input would be a color and a list of points. The output would be a list of LDraw triangle (...) (22 years ago, 3-Oct-02, to lugnet.cad.dev)

5 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