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 / 6874
6873  |  6875
Subject: 
Re: A comprehensive LDraw object model
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 10 Feb 2002 06:33:26 GMT
Viewed: 
477 times
  
I like this.

I don't think I can contribute that much.  I would like to though.  I have
been working in Java with my animation program
(http://www.cc.utah.edu/~jer29950/lani), and I can contribute a class for
LineType1.   Most useful is a rotation function that I would like to think
is optimized pretty good.  However, I am no computer scientist, so maybe it
isn't any good.  And it took me forever to write it (well, copy if from a
book, optimize it a bit more, and make it useful to me).  So I am not
exactly a super resource, but I would like to see what Jeremy is proposing
take off.

James

In lugnet.cad.dev, Jeremy H. Sproat writes:
In lugnet.cad.dev, Jeremy H. Sproat writes:
If the LDraw community can pool their efforts into providing at least an
object model for LDraw parts and functionality,

Here's my first contribution, a rough outline of a class structure.

*** LDRAW LINE TYPE CLASSES ***

abstract class LineType - ancestor class for all line-type objects

+ class LineType0 - comment line-type

+ class LineTypeCommand - command line-type

+ abstract class PhysicalLineType - ancestor class for all physically
mutable line-types

+ class LineType1 - subpart line-type

+ abstract class PrimitiveLineType - ancestor class for all
line-segment-containing line-types

   + class LineType2 - line segment line-type

   + class LineType3 - triangle line-type

   + class LineType4 - quad line-type

   + class LineType5 - optional line segment line-type

+ class LineTypeNull - blank line-type

*** LDRAW DAT MANAGEMENT CLASSES ***

class ColorManager

class LDrawFile - a container for LineType objects, represents a single datfile

+ class LDrawFileMulti - a container for LDrawFile objects, represents an
MPD file

abstract class ModelLoader - ancestor class for all model loaders, model cache

+ class DiskModelLoader - loads datfiles from local storage

+ class HTTPModelLoader - loads datfiles from web repository

class ModelParser - parses a datfile into its component LineType objects

*** LDRAW DAT RENDERER CLASSES ***

abstract class LDrawRenderer - ancestor class for renderers

+ class LDrawRendererOrthographic - renders LDraw.exe style

*** MATH CLASSES ***

abstract class MatrixNxN - ancestor class for transformation matrices

+ class Matrix4x4 - a 4x4 transformation matrix

abstract class VectorN - ancestor class for vectors

+ class Vector3 - a 3-element vector, useful for coordinates, euler angles,
RGB color values, etc.

+ class Vector4 - a 4-element vector, useful for 4x4 Matrix math,
quaternions, etc.

Cheers,
- jsproat



Message is in Reply To:
  Re: A comprehensive LDraw object model
 
(...) Here's my first contribution, a rough outline of a class structure. *** LDRAW LINE TYPE CLASSES *** abstract class LineType - ancestor class for all line-type objects + class LineType0 - comment line-type + class LineTypeCommand - command (...) (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
    

Custom Search

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