Detection and promotion of geometric sink points.#188
Merged
allegroLeiden merged 3 commits intolime-rt:masterfrom Nov 17, 2016
Merged
Detection and promotion of geometric sink points.#188allegroLeiden merged 3 commits intolime-rt:masterfrom
allegroLeiden merged 3 commits intolime-rt:masterfrom
Conversation
This is designed to fix issue lime-rt#101. Sink points of the number specified by the user are initially constructed on a spherical surface of the specified radius. However it is possible for points located inside this radius also to be sink points, because the true geometric definition of a sink point is that it is a vertex of a triangular face of a Delaunay cell which lies on the outer surface of the model. In the example model.c which comes packaged with the code, the desired number of sink points is specified via par->sinkPoints as 4000. This is a relatively and almost anomalously high number, since it leads to a mean distance between points on the surface which is much lower than the mean distance between internal points just adjacent to the surface. The knock-on effect of this is that most of the Delaunay cells which have one face on the surface may be expected to be very extended in the radial direction. In the absence of explanation for this high value of par->sinkPoints it has been speculated that this was to reduce the chances of a point with r<par->radius from being geometrically a sink point. With the new code in the present commit this requirement for a large par->sinkPoints is abolished. Some tests showed that promotion of an internal point to a sink point was unlikely to happen with the example model unless par->sinkPoints was reduced to <100. I also added the characters 'Qt' to the flag string sent to qhull() in grid.c in order to ensure that all of the resulting Delaunay cells were simplicial (i.e. that they were all tetrahedra).
Contributor
|
Shouldn't the sink check be also done in delaunay calls during smoothing iterations? Smoothing moves points around, so isn't it possible that a non-sink point ends up belonging to the convex hull? |
Contributor
Author
|
It doesn't matter during the smoothing (I don't think so anyway), thus it only needs to be done in the final delaunay after the smoothing. |
Contributor
|
Yes, ok. Somehow I thought that smoothing happened later that the delaunay call with sink checking, but now I see that isn't true. |
Contributor
Author
|
It used to be that way. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #101.