_c_ Posted July 1, 2005 Share Posted July 1, 2005 I wonder if someone is reading this, still: look what it looks like the typical 'Default Hatch' shipped with every VW file: hatchName1:= 'Default Hatch'; BeginVectorFillN(hatchName1,TRUE,FALSE,0); AddVectorFillLayer(0,0,1.968503937,1.968503937,0.196850394,-0.196850394,1,1,255); EndVectorFill; Now the point is: these weird numbers, where do they come from? The hatch actually had a simple values, like 0,07 plus-minus appropriate angles- so how? Quote Link to comment
MullinRJ Posted July 2, 2005 Share Posted July 2, 2005 Orso, Not sure where you get you default hatch. Are you opening a blank file, a template file or the "VectorWorks Default" file? Or perhaps opening a file from a previous version? 1.9685..." = 50mm (not so weird a number) Are you using a metric hatch? I exported a document in inches and mm and got the same output: hatchName1:= 'Default Hatch'; BeginVectorFillN(hatchName1,TRUE,FALSE,0); AddVectorFillLayer(0,0,1,1,0.176776695,-0.176776695,1,1,255); EndVectorFill; I don't use hatches, so I doubt I've ever changed it. VW11.5 mac Raymond Quote Link to comment
_c_ Posted July 2, 2005 Author Share Posted July 2, 2005 Actually it doesn't really matter what for a hatch definition one picks. The point is that there's some sort of scaling (exactly: 3,937007874015748) of whatever lenght value. Try this schematic hatch definition: hatchName1 := 'A New Hatch'; BeginVectorFillN (hatchName1, FALSE, FALSE, 0); AddVectorFillLayer (0, 0, 1, 1, 1, 0, 1, 1, 255); EndVectorFill ; It's a simple diagonal hatch with: start: 0, 0 repeat: 1, 1 offset: 1, 0 If you think of it as a triangle, one expects to have an rect-triangle with base 1 (metres or inches, doesn't matter) According to pitagora its diagonal should be 1,41421. But what the newly defined hatche really draw is something else: start: 0, 0 repeat: 0.254, 0.254 offset: 0.254, 0 As I said, there's a scaling factor from the script to the drawed thing. Why? Does someone recognize the factor 3,937007874015748? Is it some constant value like pi, or whatever that I'm to ignorant to recognize? I'm really math-idiot. Simply don't get it. Units, page or world settings, layer scale, all seems to have no infuence on it. Quote Link to comment
_c_ Posted July 2, 2005 Author Share Posted July 2, 2005 It's inches to metres conversion? So it did depend on units? It could have been on the Function Reference Book: AddVectorFillLayer needs INCHES! And me fearing some use of the Lorentz/Einstein constant (0,3937?!!!!) which takes into account time?if I got it right. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.