Align control points

unhandled

#6

yes, but is it possible to do it ortho view specific so I dont have to draw or “3 point” the plane?

So if I am in side view for example picking 2 points should do it.


(Pascal Golay) #7

Hi Vladimir - OK - that should certainly be possible… I have a different tool that works along these lines but it’s a little messy right now, I’ll see about cleaning it up as well.

-Pascal


#8

Awesome, many thanks Pascal


(Pascal Golay) #9

Hi Vladimir - here’s a quick fox for AlignGrips - it adds AlignGripsPlane and smaacks the selected grips to a vertical plane from the two input points - is that what you needed?

AlignGrips_04_11_18.rvb (2.8 KB)

-Pascal


#10

Yup, top view works! It’s exactly what I had in mind, this can save so much time.

Side and front/back don’t work however.

If you could rig side and front/back somehow imagine the potential of this thing…


(Pascal Golay) #11

Yep, sorry - should work everywhere - hang on a bit…

@Vladimir_Aleksic - fixed… just me being a dummy. Oh wait, that part is not fixed.

AlignGrips_04_11_18.rvb (2.8 KB)

@Vladimir_Aleksic - if you feel adventurous, you can have a try at this Python:

PlanarizeSurfacePoints.py (10.0 KB)

The easiest way to run this is with

! _-RunPythonScript "Full path the py file inside double-quotes"

This is is a little fancier - the workflow is still under construction but

  • Select a surface. If points are not on, they are turned on and a red and green curve is drawn over two of the edges indicating U and V.

  • Pick a control point and the row in the direction (U or V) is planaraized.

  • There are several plane styles - probably the View one is the ‘coolest’ because you can change the view
    slightly and try again to fine tune.

  • You can change surfaces on the fly (command line option) so if you are working with multiple surfaces trying to get things trued up, this can be handy.

Note, one thing this thing does is it slides the points on the control polygon to meet the plane, it does not slam them as a projection/ by closest points - so for example, if I did it right, planarizing a second row of points from the edge will not change the tangent direction the row already has.

-Pascal


Control points/ setpt/ align
#12

Now it works everywhere but loses other 2 axis coordinates and fully flattens.

(no sorry im retarded)

Its perfect actually


(Pascal Golay) #13

Hi Vladimir - I do not see that in the Plane version… here it seems to do the right thing - pulls the grips to a vertical plane.

Points picked in the lower left (Front) view. Is that what you expect?

-Pascal


#14

Yeah I made a mistake, too tired after work lol.

Pascal, I owe you a beer.

Many thanks for your work.


(Pascal Golay) #15

Great! my grand plan is working.

-Pascal


#16

haha, looking at your posting history here you should never go thirsty again.

But jokes aside this thing is brilliant.

cheers


#17

Holy sh%%4$…thing just view dependant planarized in real time in front of my eyes.

theres alot to test here but this is very promising.

Many thanks Pascal

edit note:
*two points option shoots an error


(Pascal Golay) #18

Yep - sorry - fixed, above.

@Vladimir_Aleksic

-Pascal


#19

Thank you


#20

Pascal,

One more idea if you have the time>

The 1 axis align I suggested could have one more feature. (preserve distance between points)

As illustrated:

It would be another glorious time saver.


(Pascal Golay) #21

Hi Vladimir - hmmm- I need to think a bit about that - I’m not sure I am picturing what the ‘rules’ would be - can you post a file with point objects in the start and finish locations, or the start and end surfaces?

-Pascal


#22

Let me try to explain with this>

Using the wonderful tool you made for alignment I can planarize 1 by 1 row like so>

but what if I wanted to planarize all 3 while keeping the distance I already set between the rows >

The rule could be that the distance between the rows stays the same and only the angle is applied on a row by row basis. No matter how many rows you select.

Would it be possible?


(Pascal Golay) #23

Hi Vladimir - so, if I understand, which I may not, one row (row A, say) of points would go to the reference plane as now, and the corresponding points in neighboring rows (B and C, say) would find locations in parallel planes, maintaining the distance in the reference plane normal direction that these had from the the points in Row A… ?

if that is right, it might be possible, or at least more likely to work cleanly in the near term, if the process takes two selections, is my current thought - the points that go to the plane and the ones that move ‘with’ them as a separate selection. It’s all book keeping…

@Vladimir_Aleksic - you’ll need to remind me about this - it’s not a ‘quick fix’, I don’t think, and I am not likely to be able to get to it right away, and then I’ll almost certainly forget, if my history is anything to go by…

-Pascal


#24

spot on.

Even as a separate selection it would still be faster than doing it one by one.

*Haha, no worries, when you can and if it’s possible.

Thanks


#25

One more idea:

1 axis closest point interpolation not on a straight line but on a curve.

Right now you would this with: 1: curve through control points 2: draw new curve 3. planarize both curves in desired ortho view 4. flow the control points from old planarized curve to new curve in one of the ortho views

If you could have a tool that does : select points - draw curve by placing points in ortho view - go

and preserve distance option included for multiple rows :smiley:

There is already a curve option in your original tool but it doesn’t have the planar option and it would be cooler if you could draw the curve on the fly for testing/tryout purposes.