I have a group of points (a plane for example) and I want to project them all to a plane (simplest case == WORKPLANE). Is there some smart way to do it all at once (a.k.a. "the JEFMAN way") or is it only possible with a loop? I haven't found anything yet...
The object of this is to create a secondary tangent plane perpendicular to the primary by the following method:
- measure the secondary plane
- project all points up/down to the primary (WORKPLANE)
- construct a tangent plane from the original plane points + the projected points (guaranteed to be perpendicular to the primary as that is our projection direction)
As a follow-up question: How can I use an ARRAY variable in the same way as .HIT[...] in the construction of a tangent plane?
So I tried to use FCF localization, ISO1101 to check how PC-DMIS works... And had the surprise to see that it doesn't do the job has it should If you construct datums with tangent planes (ISO 5459 until the next !), PC-DMIS (2017R2SP7, didn't tested on 2018) uses the centroid of the secondary datum as reference, instead of the perp construction described here by
AndersI .
I checked how it works by different constructions of alignments, until finding the same result than the FCF...
I think it's a MAJOR PROBLEM... !
OK. My small differences in numbers was because I used vector points and you had generics. The BFRE was of course involving the probe tip, and that was a calibrated one, which probably explains the diff.
I'm now using generics and still don't get *exactly* the same differences as your listing shows on the location of F1-F5, but I *do* get zero on F1 and F5, and all the others on one side of the plane, so it seems to work for this test case. Now on to test on other planes...
JEFMAN, a little update. I've run your program on a plane with six points with random deviations, and most of the time the result looks OK, two points zero, the rest all on the plus side, but once in a blue moon, the result is wrong, some points are on one side, some on the other, of the created plane. Still only testing with secondary surface in YMINUS.
It's not very important, I've more or less decided to give up on this as it looks like it will never be "just a few lines" which can easily be added to a program, but *if* you're interested you can find my test program here -
http://download.hexmet.se/other/Alig...laneJefMan.zip. Maybe you can spot a mistake I've made...
The RANDOM generator is included, so you get different results each time you run the program.
I'm beginning to suspect one actually
has to do all the steps the Help describes for Tangent Plane - we have been ignoring
Void filtering (Convex Hull) so far, maybe that's why results sometimes get strange. I've written a simple Convex Hull calculation (in plain PC-DMIS code, thus slow) to reduce the number of points of interest. Will test the combination when time permits (probably Friday afternoon).