52976: Find Elements by Point - All does not find Ball element

+ minor changes in sample scripts
This commit is contained in:
eap 2016-03-17 21:47:21 +03:00
parent 1a82677a35
commit 4ed74ad3da
3 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ algo.NumberOfSegments(20)
# assign triangulation algorithm
algo = tria_mesh.Triangle()
# apply "Max Element Area" hypothesis to each triangle
# assign "Max Element Area" hypothesis
algo.MaxElementArea(100)
# compute the mesh

View File

@ -24,12 +24,13 @@ tria = smesh.Mesh(face1, "Face : triangle 2D mesh")
# Define 1D meshing
algo1D = tria.Segment()
algo1D.NumberOfSegments(2)
algo1D.LocalLength(3.)
# create and assign the algorithm for 2D meshing with triangles
algo2D = tria.Triangle()
# create and assign "LengthFromEdges" hypothesis to build triangles based on the length of the edges taken from the wire
# create and assign "LengthFromEdges" hypothesis to build triangles with
# linear size close to the length of the segments generated on the face wires (3.)
algo2D.LengthFromEdges()
# compute the mesh

View File

@ -1259,7 +1259,7 @@ bool SMESH_MeshAlgos::IsOut( const SMDS_MeshElement* element, const gp_Pnt& poin
// Node or 0D element -------------------------------------------------------------------------
{
gp_Vec n2p ( xyz[0], point );
return n2p.SquareMagnitude() <= tol * tol;
return n2p.SquareMagnitude() > tol * tol;
}
return true;
}