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 / 7917
7916  |  7918
Subject: 
Re: Idea for a meta-statement
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 2 Oct 2002 00:02:40 GMT
Viewed: 
426 times
  
In lugnet.cad.dev, Steve Bliss writes:
As a part author, I would *love* to see a POLYGON meta-statement.  It
would allow any number of points, and could be concave or convex (but
not bow-tied).  This would allow part authors to (more) easily construct
surfaces, because they would just need to specify each point once.

I know I should just go look it up, but how hard is it to decompose a
polygon into triangles?

Ah, I should go fire up LDScript, just for the polygons...

Steve


Steve, you gave me an idea, hehe!

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.

Just copy the DLL into the Plugins folder
Then run the LDDP and enter some lines in a new document:
LINE [color]
-20 0 0
20 0 0
20 0 20
0 0 30
-20 0 20
-20 0 0
LINE END
Colorful, isn't it? ;)
Run the LDS Plugin and voila! You have a neat polygon.

But you want a filled polygon if I get you right?
So, how do you want the input syntax and, more important, the output?
Should the program look for the centre of the polygon and make pieslices
from it or just draw triangles from existing points?


/Tore



Message has 1 Reply:
  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)

Message is in Reply To:
  Idea for a meta-statement
 
As a part author, I would *love* to see a POLYGON meta-statement. It would allow any number of points, and could be concave or convex (but not bow-tied). This would allow part authors to (more) easily construct surfaces, because they would just need (...) (22 years ago, 26-Sep-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