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 / 14401
Subject: 
Re: Announcing Bitsticker (and other txt/bit-to-dat utilities)
Newsgroups: 
lugnet.cad
Date: 
Fri, 2 Mar 2007 03:02:32 GMT
Viewed: 
2733 times
  
In lugnet.cad, Jim DeVona wrote:
   In lugnet.cad, Ross Crawford wrote:

   In lugnet.cad, Travis Cobbs wrote:

   You might want to add the following two lines to the tops of your generated files:
0 UNOFFICIAL PART
0 BFC CERTIFY CW
Adding the above two lines will enable BFC processing. The first line is needed because most models don’t contain a 0 BFC CERTIFY line in them.

Thanks for pointing this out, I just realised txt2dat does not include any header at all. I’d better fix that :)

Hey, txt2dat is cool! It looks like it should build on the Mac, too, so I’m puttering with rewriting the Makefile to make that happen. (The triangle library builds fine with the -DLINUX switch turned off.) It’s part of my new crusade to get every LDraw program on earth ported to the Mac. Any other LDraw utility authors - watch out! You’re next. ;-)

Hey, that’d be great! The makefile is a bit of a rat’s nest, because I borrowed it from the freetype library, and modified it. The main reason I did that was for cross-platform compatability, but I’ve never had a Mac to try on. If you can get it to build on the Mac, I’d be happy to work any changes into the official version.

ROSCO


Subject: 
txt2dat on Mac OS X (was Re: Announcing Bitsticker)
Newsgroups: 
lugnet.cad, lugnet.cad.dev.mac
Date: 
Fri, 2 Mar 2007 04:59:11 GMT
Viewed: 
6025 times
  
In lugnet.cad, Ross Crawford wrote:

   In lugnet.cad, Jim DeVona wrote:

   Hey, txt2dat is cool! It looks like it should build on the Mac, too, so I’m puttering with rewriting the Makefile to make that happen. (The triangle library builds fine with the -DLINUX switch turned off.) It’s part of my new crusade to get every LDraw program on earth ported to the Mac. Any other LDraw utility authors - watch out! You’re next. ;-)

Hey, that’d be great! The makefile is a bit of a rat’s nest, because I borrowed it from the freetype library, and modified it. The main reason I did that was for cross-platform compatability, but I’ve never had a Mac to try on. If you can get it to build on the Mac, I’d be happy to work any changes into the official version.

Hi Ross,

It works! I just built it by hand, so I’ll write a simple makefile for it tomorrow. Only issue is that the version of Freetype 2 that comes with OS X doesn’t seem to know about FT_Orientation, so I just ifdeffed out the few bits that referred to that, possibly at the expense of handling certain cases (Postscript fonts which are wound the other way, perhaps? I dunno).

txt2dat on OS X

I have a proposition: working out a Mac build is great, but what would you say to adapting txt2dat to run on the web (like Bitsticker)? Even more than my Mac crusade, I like the idea of making all these LDraw tools more accessible to the casual user, who may not be so keen on the command line or even just installing lots of little programs. I’d be willing to work on that, when possible, and I could even host it since my web server supports compiled CGI “scripts.”

Jim


Subject: 
Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
Newsgroups: 
lugnet.cad, lugnet.cad.dev.mac
Date: 
Fri, 2 Mar 2007 06:34:06 GMT
Viewed: 
6128 times
  
In lugnet.cad, Jim DeVona wrote:
   In lugnet.cad, Ross Crawford wrote:

   In lugnet.cad, Jim DeVona wrote:

   Hey, txt2dat is cool! It looks like it should build on the Mac, too, so I’m puttering with rewriting the Makefile to make that happen. (The triangle library builds fine with the -DLINUX switch turned off.) It’s part of my new crusade to get every LDraw program on earth ported to the Mac. Any other LDraw utility authors - watch out! You’re next. ;-)

Hey, that’d be great! The makefile is a bit of a rat’s nest, because I borrowed it from the freetype library, and modified it. The main reason I did that was for cross-platform compatability, but I’ve never had a Mac to try on. If you can get it to build on the Mac, I’d be happy to work any changes into the official version.

Hi Ross,

It works! I just built it by hand, so I’ll write a simple makefile for it tomorrow. Only issue is that the version of Freetype 2 that comes with OS X doesn’t seem to know about FT_Orientation, so I just ifdeffed out the few bits that referred to that, possibly at the expense of handling certain cases (Postscript fonts which are wound the other way, perhaps? I dunno).

Hmmm, interesting. txt2dat is currently compiled against 2.1.9, I haven’t tried upgrading since txt2dat is the only thing I use it for. But the API doc at the freetype site still documents the FT_Orientation API. Also, version 2.3.1 (which I just downloaded to check) seems to include it. What version do you have?

It also documents the FT_OUTLINE_REVERSE_FILL flag, which I do vaguely remember from when I originally wrote the program, and can’t remember why I didn’t use it. Does your version support that flag? If so, I’ll look into using that instead. Type 1 (Postscript) fonts are wound the other way (at least the ones I have are) so we do need to take it into account.

   I have a proposition: working out a Mac build is great, but what would you say to adapting txt2dat to run on the web (like Bitsticker)? Even more than my Mac crusade, I like the idea of making all these LDraw tools more accessible to the casual user, who may not be so keen on the command line or even just installing lots of little programs. I’d be willing to work on that, when possible, and I could even host it since my web server supports compiled CGI “scripts.”

That’s also a great idea, but I’ll still continue to maintain the stand-alone executable separately, so it’ll be up to you to incorporate any changes I may make to the original :) Either way, I’m happy put a to link on my page.

ROSCO


Subject: 
Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
Newsgroups: 
lugnet.cad, lugnet.cad.dev.mac
Date: 
Fri, 2 Mar 2007 14:44:23 GMT
Viewed: 
6377 times
  
In lugnet.cad, Ross Crawford wrote:

   In lugnet.cad, Jim DeVona wrote:

   Hi Ross,

It works! I just built it by hand, so I’ll write a simple makefile for it tomorrow. Only issue is that the version of Freetype 2 that comes with OS X doesn’t seem to know about FT_Orientation, so I just ifdeffed out the few bits that referred to that, possibly at the expense of handling certain cases (Postscript fonts which are wound the other way, perhaps? I dunno).

Hmmm, interesting. txt2dat is currently compiled against 2.1.9, I haven’t tried upgrading since txt2dat is the only thing I use it for. But the API doc at the freetype site still documents the FT_Orientation API. Also, version 2.3.1 (which I just downloaded to check) seems to include it. What version do you have?

I believe it is freetype 2.1.4 (based on the major/minor/patch definitions in freetype.h). The headers are last dated 2002, and a look at more recent freetype changelogs suggests that predates the introduction of “FT_Orientation.” It’s annoying that the preinstalled libraries aren’t more up to date.

   It also documents the FT_OUTLINE_REVERSE_FILL flag, which I do vaguely remember from when I originally wrote the program, and can’t remember why I didn’t use it. Does your version support that flag? If so, I’ll look into using that instead. Type 1 (Postscript) fonts are wound the other way (at least the ones I have are) so we do need to take it into account.

Yes, FT_OUTLINE_REVERSE_FILL is defined on my system.

  
   I have a proposition: working out a Mac build is great, but what would you say to adapting txt2dat to run on the web (like Bitsticker)? Even more than my Mac crusade, I like the idea of making all these LDraw tools more accessible to the casual user, who may not be so keen on the command line or even just installing lots of little programs. I’d be willing to work on that, when possible, and I could even host it since my web server supports compiled CGI “scripts.”

That’s also a great idea, but I’ll still continue to maintain the stand-alone executable separately, so it’ll be up to you to incorporate any changes I may make to the original :) Either way, I’m happy put a to link on my page.

Cool. I don’t think any modifications to txt2dat itself will even be necessary: I’ll write a CGI script that passes it arguments and returns its output. That would make it easy to keep the web version in sync with the regular version.

I just checked and txt2dat builds on my server no problem (it has FT 2.1.9). I’ll work out my makefile later today.

Jim


Subject: 
Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
Newsgroups: 
lugnet.cad, lugnet.cad.dev.mac
Date: 
Fri, 2 Mar 2007 17:11:38 GMT
Viewed: 
6303 times
  
In lugnet.cad, Jim DeVona wrote:

   I just checked and txt2dat builds on my server no problem (it has FT 2.1.9). I’ll work out my makefile later today.

Here is my rudimentary makefile for building txt2dat on my Mac and a linux machine. No guarantees it will work for anyone else but hopefully it could be helpful. Also a copy of txt2dat.c containing my quick checks to get around the lack of FT_Orientation in my old version of Freetype.
This makefile goes in the same folder as the original and I build it with make -f Makefile.alt (it puts the txt2dat program in the same folder as well).

Jim


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