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 / 10211
Subject: 
Re: Hold on primitives by pneaster
Newsgroups: 
lugnet.cad
Date: 
Wed, 11 Jun 2003 21:10:15 GMT
Viewed: 
637 times
  
In lugnet.cad, Niels Karsdorp wrote:
In lugnet.cad, Paul Easter wrote:

The agreed upon method is r* round( sin( Angle ),4).

I am still not fully sure about another final rounding.
in example;  round( r* round( sin( Angle ), 4), 4)
This is the current method I am using.


Here is a reason for doing this this way.
How many times have you actually calculated the true points and made a new
primitve Only to find out that when another rescaled primitive will not match up
and render correctly. This is the reason why the method I have shown above must
be used.

Thanx for the explanation, it's clear to me now.
I'll update my primitive generator and reupload the
primitives I have put on the PT

Niels
Sounds good. Make sure your generator is using spaces and not tabs. I have not
checked to see how the original Ldraw responds to tabs as number seperators.

Paul


Subject: 
Re: Hold on primitives by pneaster
Newsgroups: 
lugnet.cad
Date: 
Wed, 11 Jun 2003 21:18:07 GMT
Viewed: 
659 times
  
In lugnet.cad, Paul Easter wrote:
In lugnet.cad, Niels Karsdorp wrote:
Thanx for the explanation, it's clear to me now.
I'll update my primitive generator and reupload the
primitives I have put on the PT

Niels
Sounds good. Make sure your generator is using spaces and not tabs. I have not
checked to see how the original Ldraw responds to tabs as number seperators.

My generator (just an excel sheet with some visual basic code) uses spaces as
seperators. I hope it's not a problem that values as 1 are written as 1.0000

I also fixed the generation of type 5 lines. (It generated one too less for
partial cones, now the correct amount).

The generator can create any cone or ring between 1-16 and 4-4 (not high-res).

http://home.hetnet.nl/~niels-karsdorp/ldraw/utils.htm

Niels


Subject: 
Re: Hold on primitives by pneaster
Newsgroups: 
lugnet.cad
Date: 
Thu, 12 Jun 2003 00:54:19 GMT
Viewed: 
659 times
  
In lugnet.cad, Niels Karsdorp wrote:
<some portions snipped>
My generator (just an excel sheet with some visual basic code) uses spaces as
seperators.
Ok, Yes, I started out with a spreadsheet that made 1-4 segments.

I hope it's not a problem that values as 1 are written as 1.0000
I have made it a habit of eliminating all the extra zeros out of part files that
I can. They do not do anything but take up space.
I believe the rounding function removes all trailing zeros.
Here is a routine written in VB for a spreadsheet that you can use if you want it. It's called rlz(....)   It will remove leading zeros, even the ones after a minus sign.


Dim AA As Integer
Dim BB As Integer
Dim CC As Integer

Dim TextIn As String

' Remove Leading Zero's function
Public Function RLZ(InPutText As Variant) As String
TextIn = Trim(InPutText)
    If Len(TextIn) > 0 Then
        'TextIn = Trim(TextIn)
        'If Len(TextIn) > 0 Then
            If Left(TextIn, 1) <> "0" Then
                AA = InStr(1, TextIn, " 0.")
                Do While AA > 0
                    TextIn = Left(TextIn, AA - 1) & " ." & Right(TextIn,
Len(TextIn) - (AA + 2))
                AA = InStr(1, TextIn, " 0.")
                Loop
                AA = InStr(1, TextIn, "-0.")
                Do While AA > 0
                    TextIn = Left(TextIn, AA - 1) & "-." & Right(TextIn,
Len(TextIn) - (AA + 2))
                AA = InStr(1, TextIn, "-0.")
                Loop
            End If
        'End If
    End If
    RLZ = TextIn
End Function


Yeah, it could be cleaner, but it works.


I also fixed the generation of type 5 lines. (It generated one too less for
partial cones, now the correct amount).
That is a common item that is missed.


The generator can create any cone or ring between 1-16 and 4-4 (not high-res). • I see. I made seperate sheets for hi-res as well.

http://home.hetnet.nl/~niels-karsdorp/ldraw/utils.htm

Niels
Hey, thanks for the link to your website. I have been there before. Downloaded
several of your items.
I really like the rings and cones program. We need to figure out how to get it
to determine torus files. I have a spread sheet that "kinda" tells you how to
pick one. Email me and I will send it to you. If enough people want to see it,
reply to this message and I will put it on my web site.

Paul


Subject: 
Re: Hold on primitives by pneaster
Newsgroups: 
lugnet.cad
Date: 
Sat, 21 Jun 2003 15:29:54 GMT
Viewed: 
958 times
  
In lugnet.cad, Paul Easter wrote:

I have not
checked to see how the original Ldraw responds to tabs as number seperators.

Just for the record, LDRAW.EXE and LEDIT.EXE both allow tabs as
separaters.  But they also allow line breaks as number separaters. :O

Steve


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