RINGMesh  Version 5.0.0
A programming library for geological model meshes
RINGMesh::Position Namespace Reference

Functions

bool RINGMESH_API point_inside_segment (const Geometry::Point3D &point, const Geometry::Segment3D &segment)
 Tests if a point is on a segment. More...
 
template<index_t DIMENSION>
bool point_inside_triangle (const Geometry::Point< DIMENSION > &point, const Geometry::Triangle< DIMENSION > &triangle)
 Tests if a point is inside a triangle. More...
 
bool RINGMESH_API point_inside_tetra (const Geometry::Point3D &point, const Geometry::Tetra &tetra)
 
Sign RINGMESH_API point_side_to_segment (const Geometry::Point2D &point, const Geometry::Segment2D &segment)
 
Sign RINGMESH_API point_side_to_plane (const Geometry::Point3D &point, const Geometry::Plane &plane)
 
template bool RINGMESH_API point_inside_triangle (const Geometry::Point< 2 > &, const Geometry::Triangle< 2 > &)
 
template bool RINGMESH_API point_inside_triangle (const Geometry::Point< 3 > &, const Geometry::Triangle< 3 > &)
 

Function Documentation

◆ point_inside_segment()

bool RINGMesh::Position::point_inside_segment ( const Geometry::Point3D &  point,
const Geometry::Segment3D &  segment 
)

Tests if a point is on a segment.

Returns
returns true if the point is inside

Definition at line 303 of file geometry_position.cpp.

◆ point_inside_tetra()

bool RINGMesh::Position::point_inside_tetra ( const Geometry::Point3D &  point,
const Geometry::Tetra tetra 
)

Tests if a point is inside a tetrahedron

Returns
returns true if the point is inside the tetrahedron

Definition at line 288 of file geometry_position.cpp.

◆ point_inside_triangle() [1/3]

template bool RINGMESH_API RINGMesh::Position::point_inside_triangle ( const Geometry::Point< 2 > &  ,
const Geometry::Triangle< 2 > &   
)

◆ point_inside_triangle() [2/3]

template bool RINGMESH_API RINGMesh::Position::point_inside_triangle ( const Geometry::Point< 3 > &  ,
const Geometry::Triangle< 3 > &   
)

◆ point_inside_triangle() [3/3]

template<index_t DIMENSION>
bool RINGMesh::Position::point_inside_triangle ( const Geometry::Point< DIMENSION > &  point,
const Geometry::Triangle< DIMENSION > &  triangle 
)

Tests if a point is inside a triangle.

if it is inside a prism based on the triangle and its normal

Returns
returns true if the point is inside

Definition at line 297 of file geometry_position.cpp.

◆ point_side_to_plane()

Sign RINGMesh::Position::point_side_to_plane ( const Geometry::Point3D &  point,
const Geometry::Plane plane 
)

Returns the point side to a plane

Definition at line 315 of file geometry_position.cpp.

◆ point_side_to_segment()

Sign RINGMesh::Position::point_side_to_segment ( const Geometry::Point2D &  point,
const Geometry::Segment2D &  segment 
)

Returns the point side to a segment

Definition at line 309 of file geometry_position.cpp.