Hi guys,
Is there something like the Polar function, but for a point in 3D?
Given an initial point, distance, inclination and azimuth; calculate the point where a line would reach in that direction.
I was using the command _line -> initial pt -> @dist<azim<inclination
but I think it the lisp would be faster if I avoid using the command line and create the line with entmake
Found this in a topic here a the forum, but need some modification:
(defun polar3D-incl (pt dist inclination azimuth /)
(mapcar '+
pt
(list (* dist (sin inclination) (cos azimuth))
(* dist (sin inclination) (sin azimuth))
(* dist (cos inclination))
)
)
)
the main problem is that the azimuth I have is the one used in topography/geology, which starts from 0° in the north (y-axis) and from there clockwise.
while autocad handles 0° to the east (a line to the positive x-axis), and increases the angle counterclockwise.
So my CVS file has an azimuth of 10°, for autocad it would be 80°, while an azimuth of 135° in my file would be 315° in autocad.