Loading...
Searching...
No Matches
meshkit::Point3 Struct Reference

Plain x, y, z coordinate triple; the vertex type of meshkit::Mesh. More...

#include <meshkit/geometry.hpp>

Collaboration diagram for meshkit::Point3:

Public Attributes

double x = 0
 Horizontal x coordinate in XY plane units; default 0.
 
double y = 0
 Horizontal y coordinate in XY plane units; default 0.
 
double z = 0
 Vertical coordinate (elevation) in Z units; default 0.
 

Detailed Description

Plain x, y, z coordinate triple; the vertex type of meshkit::Mesh.

Aggregate of three doubles with standard layout and no padding (checked by a static_assert below), so a std::vector<Point3> is a contiguous N x 3 array of doubles; the Python bindings expose Mesh::vertices that way. Nothing is validated on construction; validateMesh() rejects a mesh vertex with a non-finite component.

Member Data Documentation

◆ x

double meshkit::Point3::x = 0

Horizontal x coordinate in XY plane units; default 0.

For a Mesh, Metadata::horizontalMetresPerUnit gives metres per unit.

◆ y

double meshkit::Point3::y = 0

Horizontal y coordinate in XY plane units; default 0.

For a Mesh, Metadata::horizontalMetresPerUnit gives metres per unit.

◆ z

double meshkit::Point3::z = 0

Vertical coordinate (elevation) in Z units; default 0.

For a Mesh, Metadata::verticalMetresPerUnit gives metres per unit.


The documentation for this struct was generated from the following file: