Posts

Showing posts from March 4, 2019

Abasolo (kommun i Mexiko, Guanajuato, lat 20,51, long -101,54)

Image
.mw-parser-output table.ambox{margin:0 10%;border-collapse:collapse;background:#fbfbfb;border:1px solid #aaa;border-left:10px solid #608ec2}.mw-parser-output table.ambox th.ambox-text,.mw-parser-output table.ambox td.ambox-text{padding:.25em .5em;width:100%}.mw-parser-output table.ambox td.ambox-image{padding:2px 0 2px .5em;text-align:center;vertical-align:middle}.mw-parser-output table.ambox td.ambox-imageright{padding:2px 4px 2px 0;text-align:center;vertical-align:middle}.mw-parser-output table.ambox-notice{border-left:10px solid #608ec2}.mw-parser-output table.ambox-delete,.mw-parser-output table.ambox-serious{border-left:10px solid #b22222}.mw-parser-output table.ambox-content{border-left:10px solid #f28500}.mw-parser-output table.ambox-style{border-left:10px solid #f4c430}.mw-parser-output table.ambox-merge{border-left:10px solid #9932cc}.mw-parser-output table.ambox-protection{border-left:10px solid #bba}.mw-parser-output .ambox+.ambox,.mw-parser-output .topbox+.ambox,.mw-pars

Information concerning undocumented function “Region`Mesh`MeshNearestCellIndex[r ]”

Image
2 $begingroup$ I'm looking for further information of the undocumented function Region`Mesh`MeshNearestCellIndex[r] (Thanks to Henrik Schumacher!) The function considers a meshregion r and detects the nearest cell to a given point. Trying to understand I look at a very simple triangle mesh in space: pi={{0., 0., 0.303}, {1., -0.5, 0.09}, {0.7, 0.8, -0.233}, {0.,1., -0.584}, {-0.8, -0.7, -0.734}} Δi = {{1, 2, 3}, {1, 3, 4}, {1, 4, 5}, {1, 5, 2}}; r = MeshRegion[pi , Triangle[Δi]]; HighlightMesh[r, {Labeled[0, "Index"], Labeled[2, "Index"]}] Now I want to evaluate the nearest cells of point 1 Region`Mesh`MeshNearestCellIndex[r , pi[[1]] ] (*{2, 1}*) Expecting four possible cells as nearest neighbors MMA returns element #1. My question: How does MMA evaluate the priorit