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 / 11209
11208  |  11210
Subject: 
Re: Can someone explain the method to the madness...
Newsgroups: 
lugnet.cad
Date: 
Mon, 8 Mar 2004 21:58:35 GMT
Viewed: 
624 times
  
Mike Thorn wrote:
I'm cracking my keyboard over my head trying to replace a |matrix|
with a translate

The first 'matrix' specifies the *size* of the brick (depending on the Seam
Width setting).

The second one defines the rotation and translation of the brick. The first
nine numbers are the rotation matrix, and the last three are the
translation.

So,

object {
    _3003_dot_dat
    matrix <1-SW/40,0,0,0,1-SW/28,0,0,0,1-SW/40,0,SW/2.8,0>
    matrix <1,0,0,0,1,0,0,0,1,20,-24,0>
    #if (version >= 3.1) material #else texture #end { Color15 }
}

looks the same as

object {
    _3003_dot_dat
    matrix <1-SW/40,0,0,0,1-SW/28,0,0,0,1-SW/40,0,SW/2.8,0>
    rotate y*0
    translate <20,-24,0>
    #if (version >= 3.1) material #else texture #end { Color15 }
}

And with a rotation <> 0:

    matrix <0,0,1,0,1,0,-1,0,0,20,-24,-20>

means:

    rotate y*90
    translate <20,-24,-20>

Hope this helps
--
Anders Isaksson, Sweden
BlockCAD:  http://w1.161.telia.com/~u16122508/proglego.htm
Gallery:   http://w1.161.telia.com/~u16122508/gallery/index.htm



Message has 1 Reply:
  Re: Can someone explain the method to the madness...
 
The first matrix scales the part for a seam width. The second orients the part to your cad file. The last three numbers in the scond matrix are the location. povray rotates around world 0,0,0. so take your lines from this: object { _3003_dot_dat (...) (21 years ago, 9-Mar-04, to lugnet.cad)

Message is in Reply To:
  Can someone explain the method to the madness...
 
Well, I don't know if it's madness or not, but it's driving me mad, at any rate. Can some kind soul explain either or both of the following: 1) What is the conversion system for MLCAD units to POV units, when not using LGEO? 2) Why does L3P create (...) (21 years ago, 8-Mar-04, to lugnet.cad, FTX)

6 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