Static
fromStatic
fromStatic
fromMakes a MeshCell which contains the Point.
We note that the result does not depend on Point.altitude.
The mesh cell
const point = new Point(36.10377479, 140.087855041, 10.0);
let cell = MeshCell.fromPoint(point, 1);
console.log(cell.equals(
new MeshCell(
MeshNode.ofMeshcode(54401027),
MeshNode.ofMeshcode(54401028),
MeshNode.ofMeshcode(54401037),
MeshNode.ofMeshcode(54401038),
1
)
));
let cell = MeshCell.fromPoint(point, 5);
console.log(cell.equals(
new MeshCell(
MeshNode.ofMeshcode(54401005),
MeshNode.ofMeshcode(54401100),
MeshNode.ofMeshcode(54401055),
MeshNode.ofMeshcode(54401150),
5
)
));
Represents the unit mesh cell (mesh cell or cell shortly).
This is a quadruplet of the mesh nodes (and mesh unit), and has no other MeshNode inside
this
in themeshUnit
.The cell is, roughly, a square with
meshUnit
[km] length edges.Example