To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 6235
6234  |  6236
Subject: 
Re: Help Needed: Boundary Box Utility
Newsgroups: 
lugnet.cad, lugnet.cad.dev
Date: 
Tue, 14 Aug 2001 18:41:12 GMT
Viewed: 
447 times
  
Thank you Don.


I will give it a try tonight, but I'll probably fail. I'll let you know.

I need it for two purposes:
1. Making an overview map of Datsville from the subdivision in town.dat. (Maybe post-editing of the Y and E values by
hand).
2. Making super-simplified models for previews of animations.


Thanks again,
/Tore


Don Heyse wrote:

In lugnet.cad, Tore Eriksson writes:
Could somebody please make a utility that calculates and creates a boundary box for a .dat file?

I want it to be able to take a DOS command line like "bbox.exe C:\Ldraw\Models.Mymodel.dat" and it should create
'MyModel.box' in the same directory. An optional outfile argument would be nice, but not necessary.

It must also exit without the need of "Press any key to continue".

The box files of this utility should include the top studs, as opposed to my part/box replacement files.
So, the output file from processing 3001.dat would read:
1 16  0 10 0  40 0 0  0 14 0  0 0 20  box.dat

I don't think I can do this right away since I already have 2 actual
bug reports and an enhancement request in for ldglite.  (I don't get
many of these so I like to give them priority).  It shouldn't be too
hard to do though.  Everything you need is in the L3 parser which you
can find in the ldglite sources.  Just make a new main function
that gets the dat filename and calls these functions from L3Input.cpp

    LoadModelPre();
    LoadModel(datfilename);
    LoadModelPost();

I believe the bounding box is calculated for you in the Parts[0].BBox
structure.  Then all you have to do is save it to a file.  I might be
able to put this together this weekend, but if you're in a big hurry
it shouldn't be too much of a project.  What do you need this for?

Don



Message has 1 Reply:
  Re: Help Needed: Boundary Box Utility
 
(...) [snipped: How-To instructions for making this from L3Input.cpp] (...) Ok, I decided to give this a shot during my lunch break. I hacked ldglite to bits and the results (source and win32 exe) should be here. (URL) to work for 3001.dat, but (...) (23 years ago, 15-Aug-01, to lugnet.cad, lugnet.cad.dev)

Message is in Reply To:
  Re: Help Needed: Boundary Box Utility
 
(...) I don't think I can do this right away since I already have 2 actual bug reports and an enhancement request in for ldglite. (I don't get many of these so I like to give them priority). It shouldn't be too hard to do though. Everything you need (...) (23 years ago, 14-Aug-01, to lugnet.cad, lugnet.cad.dev)

12 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