Class PointCloudGeometry
Defined in File point_cloud_geometry.hpp
Inheritance Relationships
Base Type
public Geometry
Class Documentation
-
class PointCloudGeometry : public Geometry
Geometry of a set of sites (the DOF holders of a layout: a point cloud or the entities of one dimension of a mesh): the identity map, located by the MLS supports of each query point. Bind finds the supports with Neighbourhood, using the options the geometry was created with.
The supports are searched by the geometry the site layout is on (FieldLayout::GetGeometry) when it has one and its DOF holders are the entities of one dimension of it without ghosts, e.g. the adjacency search of an Omega_h mesh for its vertices or element centroids; otherwise, for a bare point cloud, by distance. It holds only the site layout, and the layout never holds a point-cloud geometry built on it. Create it with CreateGeometry (pcms/backends/point_cloud/geometry.hpp).
- Throws pcms_error:
on construction if the sites’ coordinate system does not have the identity metric
Public Functions
Own it by std::shared_ptr, as CreateGeometry does: Bind uses shared_from_this().
-
inline const std::shared_ptr<const CoordinateSystem> &GetCoordinateSystem() const noexcept override
-
inline const std::shared_ptr<const FieldLayout> &GetSiteLayout() const noexcept
-
inline bool TakesHints(const OwnerHints &owners, LO num_points) const noexcept override
A hint naming the cloud or the geometry of its site layout, whose entities the sites are, is used (and forwarded to that geometry).
-
inline SupportResults Neighbourhood(CoordinateView<DeviceMemorySpace> coords, int, const NeighbourhoodOptions &options, const OwnerHints &owners = {}) const override
The supports among the sites: the search of the site layout’s geometry among the entities the sites are, when there is one (see the class comment), with
ownersforwarded to it (verified there), and the distance search otherwise.site_dimis ignored: the sites are the DOF holders of the site layout.
Protected Functions
-
inline std::shared_ptr<BoundPoints> BindImpl(const BindRequest &request) const override