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
12struct PointOnFace
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
unsafe PointOnFace()
new unsafe ref MR.FaceId face
new unsafe ref MR.Vector3f point
Definition MRCameraOrientationPlugin.h:8