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 / 8695
8694  |  8696
Subject: 
Re: *** LDView Version 1.9.7 Released ***
Newsgroups: 
lugnet.cad
Date: 
Thu, 12 Sep 2002 16:50:31 GMT
Viewed: 
653 times
  
In lugnet.cad, Jacob Sparre Andersen writes:
Travis Cobbs wrote:

In lugnet.cad, Jacob Sparre Andersen writes:

Thanks for the report.  My first guess is that this is caused by a
case-sensitive filesystem, and the files have a different case than what the
model specifies.

The files are located on case-sensitive file systems (that's
all I have - except for some floppies), but the file names
used in the files match the names on the disk (maybe except
for some stuff in "p/"). I use all lower case for the LDraw
parts library and most of my LDraw model files.

My LDraw code used "P/" and "PARTS/" when looking for parts and primitives,
so those had to be upper case in order to work.  I think everything else
generally needed to be lower case.  The new test version I posted a link to
in the other message should get around the problem.  It ran fine on my EXT3
filesystem, even after I played games with the case of the directory names
and the file names.

There are a few things I need to do to speed it up in certain cases.  Right
now it tries to open the file with the entire path in lower case, then the
entire path in upper case, then it does a case-insensitive search for the
file.  For parts in the LDraw directory, this case-insenstive search starts
at "/", and gets built up one directory at a time.  If your LDraw directory
path contains mixed case anywhere, the full case-insensitive search has to
be used for every single part and primitive.  This is fairly slow.  I can
get around this by not case-converting the LDraw path.  Then at least having
consistent case for primitives and parts allows them to be found without
resorting to a brute force search.

--Travis Cobbs (tcobbs@REMOVE.halibut.com)



Message has 1 Reply:
  Re: *** LDView Version 1.9.7 Released ***
 
"Travis Cobbs" <tcobbs@REMOVE.halibut.com> skrev i meddelandet news:H2C447.5uL@lugnet.com... (...) Right (...) starts (...) directory (...) Suggestions: Do a one-time scan of the LDRAW directory, and build a translation table in memory between your (...) (22 years ago, 12-Sep-02, to lugnet.cad)

Message is in Reply To:
  Re: *** LDView Version 1.9.7 Released ***
 
(...) The files are located on case-sensitive file systems (that's all I have - except for some floppies), but the file names used in the files match the names on the disk (maybe except for some stuff in "p/"). I use all lower case for the LDraw (...) (22 years ago, 12-Sep-02, to lugnet.cad)

20 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