Jump to content

Recommended Posts

Posted

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?

:unsure:

Posted

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.

Posted

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.

Posted

Didn't know that Cad Tutor and the Swap were the same, sorry for the duplicat thread. Thanks for the help!

Posted
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. ;)

Posted

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)))))

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...