1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MeshGetNearestNode</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="MeshGetNearestNode"><H1>MeshGetNearestNode</H1></A>
This function returns the node nearest to the given point, or -1 if the closest node is not contained in the local mesh.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "mesh.h"
int MeshGetNearestNode(Mesh mesh, double x, double y, double z, PetscTruth outside, int *node)
</PRE>
Not collective
<P>
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>mesh </B></TD><TD>- The mesh
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>x,y,z </B></TD><TD>- The node coordinates
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>outside </B></TD><TD>- A flag to allow points outside the domain
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>node </B> -The nearest node
<br>
<P>
<H3><FONT COLOR="#CC3333">Note</FONT></H3>
The outside flag allows points outside the domain to be tested. If this flag
is PETSC_FALSE, and (x,y,z) does not lie in the global domain, then an error
will result.
<P>
<P>
<H3><FONT COLOR="#CC3333">Keywords</FONT></H3>
mesh, node, point location
<BR>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../Mesh/MeshLocatePoint.html#MeshLocatePoint">MeshLocatePoint</A>()
<BR><P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>beginner
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/mesh/interface/meshQuery.c.html#MeshGetNearestNode">src/mesh/interface/meshQuery.c</A>
<BR><A HREF="./index.html">Index of all Mesh routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|