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{
12
13
16{
18 FaceId face;
19
21 Vector3f point;
22
24 [[nodiscard]] bool valid() const { return face.valid(); }
25 [[nodiscard]] explicit operator bool() const { return face.valid(); }
26
27 MRMESH_API friend std::ostream& operator<<( std::ostream& s, const PointOnFace& pof );
28 MRMESH_API friend std::istream& operator>>( std::istream& s, PointOnFace& pof );
29};
30
31}
bool valid() const
check for validity, otherwise the point is not defined
Definition MRPointOnFace.h:24
FaceId face
mesh's face containing the point
Definition MRPointOnFace.h:18
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:21
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
a point located on some mesh's face
Definition MRPointOnFace.h:16