MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMesh/MRPointOnFace.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVector3.h"
4#include "MRId.h"
5
6namespace MR
7{
8
11{
13 FaceId face;
14
16 Vector3f point;
17
19 [[nodiscard]] bool valid() const { return face.valid(); }
20 [[nodiscard]] explicit operator bool() const { return face.valid(); }
21};
22
23} //namespace MR
a point located on some mesh's face
Definition MRMesh/MRPointOnFace.h:11
bool valid() const
check for validity, otherwise the point is not defined
Definition MRMesh/MRPointOnFace.h:19
FaceId face
mesh's face containing the point
Definition MRMesh/MRPointOnFace.h:13
Vector3f point
a point of the mesh's face
Definition MRMesh/MRPointOnFace.h:16