+ minor changes in sample scripts
# 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
# 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
// Node or 0D element -------------------------------------------------------------------------
{
gp_Vec n2p ( xyz[0], point );
- return n2p.SquareMagnitude() <= tol * tol;
+ return n2p.SquareMagnitude() > tol * tol;
}
return true;
}