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 / 6869
6868  |  6870
Subject: 
Re: A comprehensive LDraw object model
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 10 Feb 2002 00:26:49 GMT
Viewed: 
443 times
  
Sproaticus wrote:

Hey folks,

I think we need to figure out a comprehensive LDraw object model.  Something
that can be presented simply, and easily ported to various modern
programming languages.  A comprehensive class diagram would be a great
start, and some code to illustrate behavior, too.  To include datfile line
types, a basic datfile collection type, minimum essential matrix and vector
math, rudimentary (generic?) bitmap generation from DAT content, etc.

> (Maybe not too much, let's keep it lean and mean.)  At the least, I
> think we should make the object model workable in C++, Java, Perl and
> Python.



This is interesting. I wonder what we can do as far as making it both
comprehensive and generic enough to be easily used by all those
languages. (I haven't fully read your second message but I"ll probably
have more comments there.)


I have a modest start on an object model for Java in the works for my own
use, but I think that if we all pool our efforts, we can enable a wide array
of LDraw tools to be made quickly and easily.  Over the past week, I
implemented a datline class hierarchy and various matrix and vector math
classes.  After that was about 90% finished, here's what I was able to write
in LESS THAN HALF A DAY (check out the window titled "xjjld - Jeremy's Java
LDraw", lower left corner):

http://www.brickshelf.com/cgi-bin/gallery.cgi?i=115962


That looks pretty cool. I'd like to see it when it's done.




> (Note:  there is absolutely NO Java3D in that program.  And it's even
> kinda fast.  So far... for smallish models... with no filled
> polygons... ;-)



I understand your dislike for J3d, and we don't need to go through that
again, but It owuld be nice to take advantage of things that are
available on the different langauge platforms. For example, even though
it's shipped with J3D, the Vector math library (javax.vecmath) is really
a separate classlibrary, and I think would be a good choice when using
Java as the language. Better than going and writing a whole 'nother
Matrix library anyway.

There really isn't any reason to reinvent the wheel is there?

Also in your evaluation J3D etc... Did you happen to try GL4Java?


-Kyle



Message has 1 Reply:
  Re: A comprehensive LDraw object model
 
(...) I'll have a better answer for this when I port my Java implementation to Perl. But yah, I guess "comprehensive" and "generic" don't quite mix well. I want comprehensive, in that this library could be used for many different methods of (...) (22 years ago, 10-Feb-02, to lugnet.cad.dev)

Message is in Reply To:
  A comprehensive LDraw object model
 
Hey folks, I think we need to figure out a comprehensive LDraw object model. Something that can be presented simply, and easily ported to various modern programming languages. A comprehensive class diagram would be a great start, and some code to (...) (22 years ago, 9-Feb-02, to lugnet.cad.dev)

30 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