March 22, 2013 03:33PM LDraw Part Author Registered: 3 years agoPosts: 196
Hi Tim,

I implemented this code, but non-iteratively...that is, I collect 'chains' of points that are all near each other and then when all chains are gathered, each set of points in a chain are set to be at the point cloud's centroid, which effectively locks up the points.

As we discussed, a chain of points all within TOL of each other 'cascade' into one collapsed point, even though the extrema of the point chain are more than TOL apart.

But what I also discovered is that my non-iterative problem (find all chains first, "edit" all geometry second) will result in geometry where some points are _within_ TOL of each other.

For example:
```      E

A     1      E
B    2      D

C```

Points A, B, C, D and E are in a circular arc whose center is (1), and whose radius is slightly smaller than TOL.
Point E is directly above C, such that the distance from E to any point is > TOL (that is, E is enough "up" that it is more than TOL from A, C and E.

Point 2 is the 'centroid' of ABCDE - that is, A, B, C, D and E will all end up at point 2 after locking up points.

When this happens, the distance from 2 to E can easily be below TOL.

I think my question is: do I care??? :-)

That is, at this point am I done snapping and I go home, or do I then need to re-run a snap to detect that 2 and E are close and merge them?

Is the above pattern a legitimate authoring technique or 'too much detail in too small of a place'?

cheers
ben
SubjectAuthorViewsPosted
Roland Melkert719March 08, 2013 12:41PM
Philippe Hurbain355March 08, 2013 11:07PM
Roland Melkert354March 09, 2013 11:11AM
Philippe Hurbain352March 09, 2013 11:25AM
Roland Melkert357March 09, 2013 12:23PM
Ben Supnik325March 09, 2013 08:18PM
Philippe Hurbain347March 09, 2013 10:53PM
Roland Melkert389March 10, 2013 11:35AM
Philippe Hurbain374March 10, 2013 12:00PM
Ben Supnik374March 10, 2013 04:11PM
Roland Melkert379March 10, 2013 04:32PM
Ben Supnik385March 10, 2013 07:31PM
Travis Cobbs350March 10, 2013 10:19PM
Ben Supnik352March 10, 2013 11:20PM
Tim Gould463March 10, 2013 11:40PM
Ben Supnik385March 11, 2013 11:52AM
Roland Melkert379March 11, 2013 01:31PM
Tim Gould378March 11, 2013 01:58PM
Roland Melkert383March 11, 2013 04:48PM
Tim Gould407March 11, 2013 04:57PM
Roland Melkert367March 11, 2013 06:02PM
Tim Gould378March 11, 2013 06:24PM
Travis Cobbs386March 11, 2013 10:12PM
Tim Gould399March 11, 2013 02:07PM
Ben Supnik395March 22, 2013 03:33PM
Tim Gould385March 22, 2013 03:44PM
Ben Supnik371March 22, 2013 04:48PM
Philippe Hurbain441March 23, 2013 01:49AM
Travis Cobbs372March 11, 2013 11:20AM
Roland Melkert397March 11, 2013 01:50PM
Roland Melkert316March 12, 2013 11:15AM
Ben Supnik341March 12, 2013 11:24AM
Roland Melkert332March 12, 2013 11:37AM
Travis Cobbs324March 09, 2013 10:57PM

Sorry, only registered users may post in this forum.