Package geomss.geom
Class MeshUtil
- java.lang.Object
-
- geomss.geom.MeshUtil
-
public final class MeshUtil extends java.lang.Object
A collection of static methods used to work with triangular unstructured meshes.Modified by: Joseph A. Huwaldt
- Version:
- April 11, 2018
- Author:
- Joseph A. Huwaldt, Date: February 4, 2018
-
-
Constructor Summary
Constructors Constructor Description MeshUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TriangleList<Triangle>
advancingFrontPlanar(PointString<? extends GeomPoint> boundaryPnts, Parameter<javax.measure.quantity.Length> tol)
Generate an unstructured mesh/grid on a planar region defined by the input boundary points.static TriangleList<Triangle>
advancingFrontPlanar(PointString<? extends GeomPoint> boundaryPnts, Parameter<javax.measure.quantity.Length> tol, Parameter<javax.measure.quantity.Area> minArea, Parameter<javax.measure.quantity.Length> smoothingEps)
Generate an unstructured mesh/grid on a planar region defined by the input boundary points.
-
-
-
Constructor Detail
-
MeshUtil
public MeshUtil()
-
-
Method Detail
-
advancingFrontPlanar
public static TriangleList<Triangle> advancingFrontPlanar(PointString<? extends GeomPoint> boundaryPnts, Parameter<javax.measure.quantity.Length> tol)
Generate an unstructured mesh/grid on a planar region defined by the input boundary points. This version of this method uses a default minimum triangle area and does not apply any smoothing.- Parameters:
boundaryPnts
- The ordered boundary points for the region being meshed. The physical dimension of the points must be either 2 or 3. The points must be planar and must form a closed loop with the "inside" to the left of the unit vectors between each pair of points (when looking down the unit vector).tol
- The geometric tolerance on the input points.- Returns:
- A list of triangles that represent the final unstructured mesh.
- See Also:
advancingFrontPlanar(geomss.geom.PointString, jahuwaldt.js.param.Parameter, jahuwaldt.js.param.Parameter, jahuwaldt.js.param.Parameter)
-
advancingFrontPlanar
public static TriangleList<Triangle> advancingFrontPlanar(PointString<? extends GeomPoint> boundaryPnts, Parameter<javax.measure.quantity.Length> tol, Parameter<javax.measure.quantity.Area> minArea, Parameter<javax.measure.quantity.Length> smoothingEps)
Generate an unstructured mesh/grid on a planar region defined by the input boundary points.- Parameters:
boundaryPnts
- The ordered boundary points for the region being meshed. The physical dimension of the points must be either 2 or 3. The points must be planar and must form a closed loop with the "inside" to the left of the unit vectors between each pair of points (when looking down the unit vector).tol
- The geometric tolerance on the input points.minArea
- The minimum area triangle to allow in the mesh.smoothingEps
- The tolerance for stopping the smoothing process. Smoothing stops when the maximum node position change in the mesh is less than this value. If this value is null or zero, then no smoothing is done.- Returns:
- A list of triangles that represent the final unstructured mesh.
-
-