caddman6425 Posted September 18, 2011 Posted September 18, 2011 OK, uh, let me collect my thoughts. Let's see, when you polar a point it is in the x-y direction, but how about doing a polar into the z-direction. Is this possible, if so, can someone give me a rosetta stone on the steps to accomplish this? I got my self lost, trying to think this thru. Is there a polar command for the z-direction or a work around to achive it? Quote
Cad Monkey 2 Posted September 18, 2011 Posted September 18, 2011 I don't think it works in a skewed 3D view, but if you go to one of the other views (on the view cube) then you can type "UCS" and pick the "view" option on the command line. this will reset the polar to work like the top view, but in the current view. Quote
caddman6425 Posted September 18, 2011 Author Posted September 18, 2011 Yeah, that's what I'm thinking. Quote
caddman6425 Posted September 18, 2011 Author Posted September 18, 2011 How does that work in my case Quote
irneb Posted September 19, 2011 Posted September 19, 2011 There's no direct function for such. You can either change the ucs by rotating 90 around the X axis and then do a polar. Or you can calculate it using trig. As an example (though from the wrong end) check the alternative way here of getting the angle from xy points. So basically you'd want the opposing length (Z) and the adjacent length (X). You've got the angle from the x axis (Delta), and the diagonal distance ®. Thus you'd need to use sin of Delta to get R/Z, so (* (/ 1 (sin Delta)) R) gives you the Z. Similar for X using cos instead. Then that basically gives you the dX and dZ which you need to add to the origin X & Z (i.e. the start point) in order to obtain the endpoint. Quote
irneb Posted September 19, 2011 Posted September 19, 2011 See my reply to your duplicate thread at the swamp: http://www.theswamp.org/index.php?topic=39495.0 Quote
caddman6425 Posted September 20, 2011 Author Posted September 20, 2011 Didn't know that Cad Tutor and the Swap were the same, sorry for the duplicat thread. Thanks for the help! Quote
irneb Posted September 20, 2011 Posted September 20, 2011 Didn't know that Cad Tutor and the Swap were the same, sorry for the duplicat thread. Thanks for the help!It's not the same place. It's just that it's a bit difficult to later get a comprehensive answer to the question if someone searches for something similar. I.e. some answers are on one thread, while others may be on another. Thus someone looking for a solution to this same problem needs to go look at at least 2 threads. Usually it's a no-no to duplicate threads on the same forum. But since there's no way to merge threads between 2 separate forums, I rather just link to the other than duplicate my answers as well. It wasn't meant as anything against you, just to note that there's another thread somewhere else with some answers to this problem. Quote
BIGAL Posted September 21, 2011 Posted September 21, 2011 Bit more from irneb work out 3d point from first principles (house roofs) a simple z adjust is move last "" 0,0,0 0,0,dz if object required at the xyz pt. something like (setq rh (sqrt (* dst2_eaves (* dst2_eaves (- (/ 1 (* (cos ang2)(cos ang2)))1))))) Quote
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.