43 template<
typename U >
50 [[nodiscard]]
bool inVertex()
const {
return bary.inVertex() >= 0; }
63 [[nodiscard]]
bool valid()
const {
return e.valid(); }
64 [[nodiscard]]
explicit operator bool()
const {
return e.valid(); }
106template <
typename T =
float>
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:31
bool inVertex() const
returns true if the point is in a vertex
Definition MRMeshTriPoint.h:50
bool operator==(const MeshTriPointT &rhs) const =default
returns true if two points are equal including equal not-unique representation
VertId inVertex(const MeshTopology &topology) const
returns valid vertex id if the point is in vertex, otherwise returns invalid id
EdgePointT< T > MeshEdgePointT
Definition MRMeshFwd.h:487
EdgeId e
Definition MRMeshTriPoint.h:29
MeshEdgePointT< T > onEdge(const MeshTopology &topology) const
bool same(const MeshTopology &topology, const EdgePointT< T > &lhs, const EdgePointT< T > &rhs)
returns true if two edge-points are equal considering different representations
std::array< WeightedVertexT< T >, 3 > getWeightedVerts(const MeshTopology &topology) const
returns three weighted triangle's vertices with the sum of not-negative weights equal to 1,...
VertId v
Definition MRMeshTriPoint.h:16
T weight
Definition MRMeshTriPoint.h:17
MeshTriPointT(EdgeId e, TriPoint< T > bary)
Definition MRMeshTriPoint.h:38
bool valid() const
consider this valid if the edge ID is valid
Definition MRMeshTriPoint.h:63
MeshTriPointT(NoInit)
Definition MRMeshTriPoint.h:37
TriPoint< T > bary
Definition MRMeshTriPoint.h:34
constexpr NoInit noInit
Definition MRMeshFwd.h:103
bool fromTriangle(const MeshTopology &topology, FaceId f) const
returns true if the point is inside or on the boundary of given triangular face
MeshTriPointT(const MeshTopology &topology, VertId v)
Definition MRMeshTriPoint.h:40
MR_BIND_TEMPLATE(std::pair< Vector3f, TriPointf > closestPointInTriangle(const Vector3f &p, const Vector3f &a, const Vector3f &b, const Vector3f &c))
MeshTriPointT(EdgeId e, const Vector3< U > &p, const Vector3< U > &v0, const Vector3< U > &v1, const Vector3< U > &v2)
given a point coordinates computes its barycentric coordinates
Definition MRMeshTriPoint.h:44
MeshTriPointT
Definition MRMeshFwd.h:514
MeshTriPointT canonical(const MeshTopology &topology) const
represents the same point relative to the topology.edgeWithLeft( topology.left( e ) )
MeshTriPointT< float >(MeshTriPointd, MeshTriPointT< double >)) using MeshTriPointf
T interpolate(const MeshTopology &topology, const VertScalars &field) const
linearly interpolates the values given in vertices to find the field's value at this point
MeshTriPointT lnext(const MeshTopology &topology) const
represents the same point relative to next edge in the same triangle
MeshTriPointT(const MeshEdgePointT< T > &ep)
Definition MRMeshTriPoint.h:39
bool isBd(const MeshTopology &topology, const FaceBitSet *region=nullptr) const
returns true if the point is in vertex or on edge, and that location is on the boundary of the region
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshTriPoint.h:28
Definition MRMeshFwd.h:102
encodes a point inside a triangle using barycentric coordinates
Definition MRTriPoint.h:19
Definition MRVector3.h:33
Definition MRMeshTriPoint.h:15