I want to show the scan details with radius and angle and I took the points in Polar but it only reports out in Cartesian. Can I or am I missing something?
Reporting out a scan as Polar Radius and Angle not Cartesian.
Collapse
X
-
I believe it's not directly possible with PC-DMIS (but I'd ask to it 15 years ago !!!!!). .PR and .PA in arrays could be nice also !
You have to calculate them with assignments.
ASSIGN/SCN_PR=SQRT(DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ*MPOINT(1,1,0),SCN1.HIT[1..SCN1.NUMHITS].XYZ*MPOINT(1,1,0)))............it's the distance between each hit and the origin in the Z plane.
If you don't write the MPOINT, it will give you the 3D distance.
ASSIGN/V1=RAD2DEG(ATAN(SCN1.HIT[1..SCN1.NUMHITS].Y/SCN1.HIT[1..SCN1.NUMHITS].X))2
ASSIGN/V2=(SCN1.HIT[1..SCN1.NUMHITS].X/ABS(SCN1.HIT[1..SCN1.NUMHITS].X)-1)*(-90)
ASSIGN/V3=(SCN1.HIT[1..SCN1.NUMHITS].Y/ABS(SCN1.HIT[1..SCN1.NUMHITS].Y)-1)*(-180)
ASSIGN/SCN_PA=V1+V2+V3 should give the polar angles between 0 and 360, if I'm not wrong.....
- Likes 1
Comment
Related Topics
Collapse
-
by DomPinchottI have been having a great deal of success indexing scans by FNAME.Hit[#].x, .xyz, etc. I use this for exporting hundreds or thousands of points at once...
-
Channel: PC-DMIS for CMMs
10-01-2015, 02:06 PM -
-
by JEFMANJust a thought...
".PR" doesn't work in assignments.If you want to calculate PR without create an alignment, you can do it :
(example...-
Channel: PC-DMIS for CMMs
07-19-2013, 10:43 AM -
-
by RookieGotta report bushing positions in Polar Coordinates but can't find the blasted icon to toggle the coordinate system. Anybody know where the little booger...
-
Channel: PC-DMIS for CMMs
07-02-2013, 11:47 AM -
-
by JEFMANJust a few code to calculate the polar angle of scan hits, waiting for the "PA" extension on them... (in Z plane, has to be changed in other...
-
Channel: Tips & Tricks
11-09-2018, 10:50 AM -
-
The machining fixture of a part sits on a small radius and finds the high point for the origin. To replicate the high points in the past I've used MIN...
-
Channel: PC-DMIS for CMMs
07-01-2016, 09:48 AM -
Comment