Displaying / Matching ends of curves
 1-14  15-28

Previous
Next
 From:  Michael Gibson
8468.15 In reply to 8468.9 
@Tom - one thing I forgot to mention is that the way it works is it looks for endpoints within 0.00000001 of each other, not exactly equal. Usually it's not so good to compare floating point numbers for exact equality because it's normal for very very small differences to be there. But if you want you can adjust the tolerance value in the script. I'll reply to your other question in a separate post.


@Pilou, re:
> so 5 connections if matching! :)

If you use Edit > Separate on the polyline it should then work like you're asking I think.


@Brian, re:
> When selecting a curve with the mouse, is the ability to identify the nearest end to
> the selection point, (as Blend is able to do for 2 curves,) available to javascript?

Sorry no it's not accessible to script currently. If you can remind me about it again once v4 betas are underway I can add it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8468.16 In reply to 8468.12 
Pilou, you had the segments of the curves connected. for the script
to identify points there should be points ;-) see attachment
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8468.17 In reply to 8468.15 
<< @Tom - one thing I forgot to mention is that the way it works is it looks for endpoints within 0.00000001 of each other, not exactly equal. Usually it's not so good to compare floating point numbers for exact equality because it's normal for very very small differences to be there. But if you want you can adjust the tolerance value in the script>>

This tolerance should be by far enough in order to create perfectly smOoth surfaces out
of the curves.

The goal is to avoid bigger gaps as the surfaces created would have wobbling edges
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8468.18 In reply to 8468.9 
Hi Tom, re:

> I draw 2 curves and they should have one point in common where both of them
> touch each other in identical coordinates>> see attachment

Do you mean that the curves currently don't touch in the z direction and that's where you're adjusting them?

Can you please post the 3DM model file for your example?

Maybe working with just half of your adjusting curve so that it had an endpoint where you wanted it to touch could work better, then you'd adjust the last 2 points and move the endpoint right onto the spot you want it to touch, then mirror or rotate a copy of it to get the other half.

Right now it's difficult to adjust some point on the curve that's not an end or corner point like that, although when you have control points of a curve turned on you can drag directly on the curve to move the point on the curve to another location but there isn't a way to grab the midpoint of the curve as the spot being located.


> Is there a better way to control the "perfect match" than zooming in - maybe as
> done in your last "little script" ?

Sorry I don't understand this part, are you talking about the endpoint marking script?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8468.19 In reply to 8468.18 
>>Do you mean that the curves currently don't touch in the z direction and that's where you're adjusting them?
Can you please post the 3DM model file for your example?<<

I attached an example. The points show where the curves should intersect in a way that they share
a common point (within the tolerance you have talked about in your former post)>>Right now it's difficult to adjust some point on the curve that's not an end or corner point like that<<

Thats what I mean. When working with curves located in a 2D plane it is easy but when the
curves are "freeform 3D", it is a challenge to arrange them in a way that they touch each
other in exactly one point. (I use to zoom in and move them around with the Nudge script at very low
values till I visually guess there is no gap left between them.>> Is there a better way to control the "perfect match" than zooming in - maybe as
done in your last "little script" ?
Sorry I don't understand this part <<

It is not easy to know if the curves do touch each other as close as possible or if there is a remaining gap between them.

So I thought if it maybe possible to run over a script similar to "MarkCurveMatchingEnds"
which will "DisplayCurveCommonPoints" to ensure that the respective curves do indeed
touch each other in one point.

But it may not be possible as there are no "real points"

Sorry its a bit difficult to explain ,,,
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8468.20 In reply to 8468.19 
Hi Tom, re:

> So I thought if it maybe possible to run over a script similar to "MarkCurveMatchingEnds"
> which will "DisplayCurveCommonPoints" to ensure that the respective curves do indeed
> touch each other in one point.

If I understand you correctly, you can select the 2 curves and use the Construct > Curve > Isect command which will intersect the 2 curves and should give a point object at areas where the curves are within 0.001 units of each other. I'll take a look at your file here next.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8468.21 In reply to 8468.19 
Hi Tom, I took a look at your file but there's 31 curves in it so I'm not sure where I should be looking for the question you had here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8468.9

Could you please simplify it and only have the curves in it that you had in your screenshot with the green arrows?

Certainly it is going to be difficult to manage so many curves all needing to intersect each other with everything swooping around in 3D at the same time. It might be better to use a smaller number of curves if possible like only focus on ones in one direction and loft between those or something like that.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
8468.22 
@Michael
<< If you use Edit> Separate on the polyline it should then work like you're asking I think.
Yes fine!

If i good remember when 2 points or more are overlaped in the same x,y,z
there was a red square... but don't remember in what Function(s) and if it's always living! :)

@ Tom
Seems you are confused by "Control Points" and Points who are possibly on a curve!

EDITED: 13 Jun 2017 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8468.23 In reply to 8468.22 
Hi Pilou,

> If i good remember when 2 points or more are overlaped in the same x,y,z
> there was a red square... but don't remember in what Function(s) and if it's always living! :)

The red square is if you have 2 of a single curve's own control points (the points you see if you select one curve and use Edit > Show pts) stacked up on top of each other. That has to do with the points just in one curve, not anything about multiple curves touching each other.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8468.24 In reply to 8468.21 
So here reduced to 2 curves.

There is a tiny gap between them.

How do I achieve that the grey one will share an overlapping point with
the red one ? I have no point to pull, so I move the 2 nearby points
with the nudge commands visually till I guess the gap is gone.

Is there a way to let MOI tell me - yes the gap is less than 0,000001 now ?

EDITED: 13 Jun 2017 by SIRTOM

Attachments:

Image Attachments:
Size: 85.5 KB, Downloaded: 14 times, Dimensions: 1712x1092px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8468.25 In reply to 8468.24 
Hi Tom, can you please post the 3DM file too?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TOM (SIRTOM)
8468.26 In reply to 8468.22 
>>@ Tom
Seems you are confused by "Control Points" and Points who are possibly on a curve!<<

Its difficult ro differentiate, I agree !

When I say "curves with a common point" I donĀ“t mean a literal curve point but the
same coordinate.

I hope the files and the screenshots can clarify my topic
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8468.27 In reply to 8468.24 
Hi Tom, so one way to do it would be to put in a dividing line down the middle of the gray curve, use Edit > Separate on the gray curve and then use Edit > Trim on the lower part of it to split it into 2 pieces:



You can then join the pieces together and there will now be a point that's directly on the grey curve which you can place on the red one, you'd grab that point and the inner 2 so that they all move together and keep the pieces smooth with each other:




re:
> Is there a way to let MOI tell me - yes the gap is less than 0,000001 now ?

Sorry no there's nothing set up in MoI to monitor curves for proximity after nudging like that.

- Michael

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  TOM (SIRTOM)
8468.28 In reply to 8468.27 
Ok very good, so this confirms that there is always a REAL point needed for exact placement of a curve
onto another one.

Muchissimas gracias again Michael - the MatchingScript is a fantastic time saver !!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-14  15-28