Inconsistency in trim?

Next
 From:  geekmidget (HF)
11603.1 
As part of my tests with MoI3D v5, I made an arc of 300 degrees and trimmed it with a circular array of lines, to divide it in evenly spaced sectors.
However for some odd reason, additional interpolation points appeared at a couple of positions.
I found that odd so I repeated the test with an arc of 270 degrees and no such points were added.
Why the inconsistency?

EDITED: 29 Nov 2024 by HF

Attachments:

Image Attachments:
Size: 343.3 KB, Downloaded: 36 times, Dimensions: 1366x768px
  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)
11603.2 In reply to 11603.1 
If i make an Array / Curve of a Point with your file i have not your result! :)

For count the radial lines select them (right to left) and see Detaisl or the up Right Page Pannel
So here 51

  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)
11603.3 
If I make your Array / Radial Lines ....Ttrim with an arc of 300° (from your text )
I have the expected result trimming!

  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:  geekmidget (HF)
11603.4 In reply to 11603.3 
Yes while you are trimming it is shown correctly but the resulting trimed arc if you keep everything joined, has additional interpolation points in the case of 300 degrees which don't appear in the case of 270 degrees. That's what puzzled me.

I simply used one line and made an circular array of 60 elements, then deleted the ones I didn't need, by the way.

EDITED: 29 Nov 2024 by HF

  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
11603.5 In reply to 11603.4 
Hi geekmidget, it's from the automatic rebuild mechanism that shows replacement edit points on circles, arcs, and ellipses so that you will get a smooth result if you manipulate the points.

Exact circles are formed in NURBS by a sequence of arcs. The actual internal control points of your 300 degree arc are like this:



The problem with this is that if you manipulate one of those points the result will have a sharp corner in it like this:





So to avoid that when you turn on control points on an arc or circle you see the points of an automatically rebuilt curve that does not have interior corner points and so will deform smoothly.

Note that the location of the corner points corresponds to the spans that you noticed have 4 control points instead of 3:



This "auto rebuild" mechanism will use the actual control points if there are only 3 points in the segment. After trimming there are more than 3 points in the curve in those spots where the segments are glued together. That's what causes the different auto rebuild behavior.

- Michael

EDITED: 29 Nov 2024 by MICHAEL GIBSON


  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)
11603.6 In reply to 11603.4 
Points of trimming are not Points of Control ... when you join several curves
Here there are moved slighly from the trimming points

You have now the explanation from 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:  geekmidget (HF)
11603.7 In reply to 11603.5 
I understand this but in both cases (270 degrees and 300 degrees) there are control points falling somewhere between two lines, however the trim gets evenly interpolated in the case of 270 degrees and in the case of 300 degrees it inserts two points instead of one in those couple of places. I thought internally arcs were saved as mathematical representations.

Sorry I was trying to reply Michael but I don't know how to use quoting in this forum UI. Is it supposed to be done manually?
Image Attachments:
Size: 281 KB, Downloaded: 18 times, Dimensions: 1366x768px
Size: 300.1 KB, Downloaded: 16 times, Dimensions: 1366x768px
  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:  geekmidget (HF)
11603.8 In reply to 11603.7 
OK So I made another related test, I used a circular array of points following an arc of 90 degrees (I added some markers for visualizing alignment), then used the freeform through points and the resulting 90 degree arc didn't respect points. So this isn't so much a trim issue as an interpolation issue.
Image Attachments:
Size: 117.9 KB, Downloaded: 19 times, Dimensions: 1366x768px
Size: 102.8 KB, Downloaded: 21 times, Dimensions: 1366x768px
  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)
11603.9 
As said previously you can't use Control Points as real Geometric Points!

Pilou
Is beautiful that please without concept!
http://moiscript.weebly.com
My Moi French Site
https://schmoll8.wixsite.com/magicavox
My MagicaVoxel Gallery

  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:  geekmidget (HF)
11603.10 In reply to 11603.9 
I thought in the case I made a freeform curve using actual points they would be respected.
  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
11603.11 In reply to 11603.10 
Hi geekmidget,

re:
> I thought in the case I made a freeform curve using actual points they would be respected.

It will be if you use Draw Curve > Freeform > "Control points".

In that case the points you pick directly become the NURBS control points of the resulting curve.

That won't be the case if you use "Through points", which calculates a curve that passes through the points you pick. The control points of the resulting curve will not be the same points that you picked, they will be the result of the interpolation calculation.

NURBS curves do not inherently pass through all their control points.

- 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:  geekmidget (HF)
11603.12 In reply to 11603.11 
I see, that naming seems counter-intuitive to me, but thanks! Now I get it.
  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
11603.13 In reply to 11603.7 
HI geekmidget,

You seem to be trying to use the edit points as a diagnostic tool.

That's not really what they are intended to do.

In MOI the edit points are meant to provide a way to deform a curve. Since the regular NURBS control points for a precise circle or arc do not deform smoothly, there is a curve rebuild process applied to edit points. The rebuilt curve will be used if you move some of the points around.


re:
> I understand this but in both cases (270 degrees and 300 degrees) there are control points falling somewhere between two lines,

No that's not quite correct, the 300 degrees has "actual NURBS control points" like this:



And the 270 degree has this:


The 270 degree does not have any fully multiple knots interior to a trim span, they're all at the end of a span.

The 300 degree one has 2 spots where a fully multiple knot is internal to a trim instead of at the ends of a trim, those are the spots where the rebuild points will get 4 edit points.


> Sorry I was trying to reply Michael but I don't know how to use quoting in this forum
> UI. Is it supposed to be done manually?

Yes. You can put the quote inside <quote></quote> if you want.

- 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
11603.14 In reply to 11603.12 
Hi geekmidget,

re:
> I see, that naming seems counter-intuitive to me, but thanks! Now I get it.

Well, with the "control points" method the points you pick directly become the NURBS control points, I don't follow how that's counter-intuitive.

- 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:  geekmidget (HF)
11603.15 In reply to 11603.14 
Try to watch the UI from the perspective of someone relatively new to MoI3D who just sees the icons and names of tools, not realizing the internals.


  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:  geekmidget (HF)
11603.16 In reply to 11603.13 
quote:
You seem to be trying to use the edit points as a diagnostic tool.

Actually I was trying to get the curve to follow the points precisely in the plane XY first to then assign each a Z value.

quote:
You can put the quote inside [...]

Thank you!
  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