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 / 7922
7921  |  7923
Subject: 
Re: Idea for a meta-statement
Newsgroups: 
lugnet.cad.dev
Date: 
Thu, 3 Oct 2002 03:38:56 GMT
Viewed: 
354 times
  
In lugnet.cad.dev, Tore Eriksson wrote:

Steve, you gave me an idea, hehe!

:D  I was *hoping* someone would pick up on this. ;)

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.

I don't have time to look right this second, but I will check it soon.

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

Right.

So, how do you want the input syntax and, more important, the output?

The input would be a color and a list of points.

The output would be a list of LDraw triangle commands.

Should the program look for the centre of the polygon and make pieslices
from it or just draw triangles from existing points?

Hmm.  Assuming the polygons are allowed to be concave, you might have to
start with drawing triangles from existing points.  And drawing with
existing points will result in fewer triangles, won't it?

Steve



Message has 2 Replies:
  LDS as an LDDP Plugin (Was: Idea for a meta-statement)
 
(...) On second thought, the idea of making an LDS compiler an LDDP plugin wasn't that good after all. First I was very excited. But what if I wish to change the value of a variable and the source has been overwritten... (...) OK, I will probably (...) (22 years ago, 3-Oct-02, to lugnet.cad.dev)
  Re: Idea for a meta-statement  [DAT]
 
(...) 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 (...) (22 years ago, 3-Oct-02, to lugnet.cad.dev)

Message is in Reply To:
  Re: Idea for a meta-statement
 
(...) Steve, you gave me an idea, hehe! Here's my first pre-embryo of an LDDP plugin: (URL) far, it is anything but impressive. It can only handle the LDS LINE command, and without any error check at all. Just copy the DLL into the Plugins folder (...) (22 years ago, 2-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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