MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPointOnFace.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVector3.h"
4#include "MRId.h"
5
6#include <iosfwd>
7
8namespace MR
9{
10
13{
15 FaceId face;
16
18 Vector3f point;
19
21 [[nodiscard]] bool valid() const { return face.valid(); }
22 [[nodiscard]] explicit operator bool() const { return face.valid(); }
23
24 MRMESH_API friend std::ostream& operator<<( std::ostream& s, const PointOnFace& pof );
25 MRMESH_API friend std::istream& operator>>( std::istream& s, PointOnFace& pof );
26};
27
28} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRCameraOrientationPlugin.h:8
a point located on some mesh's face
Definition MRPointOnFace.h:13
bool valid() const
check for validity, otherwise the point is not defined
Definition MRPointOnFace.h:21
FaceId face
mesh's face containing the point
Definition MRPointOnFace.h:15
MRMESH_API friend std::istream & operator>>(std::istream &s, PointOnFace &pof)
MRMESH_API friend std::ostream & operator<<(std::ostream &s, const PointOnFace &pof)
Vector3f point
a point of the mesh's face
Definition MRPointOnFace.h:18