mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 15:33:26 +00:00
added nodiscard
This commit is contained in:
@@ -111,6 +111,7 @@ namespace omath::collision
|
|||||||
{
|
{
|
||||||
if (to_delete[i])
|
if (to_delete[i])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (visible_from(faces[i], p))
|
if (visible_from(faces[i], p))
|
||||||
{
|
{
|
||||||
const auto& rf = faces[i];
|
const auto& rf = faces[i];
|
||||||
@@ -266,6 +267,7 @@ namespace omath::collision
|
|||||||
return d;
|
return d;
|
||||||
return V{1, 0, 0};
|
return V{1, 0, 0};
|
||||||
}
|
}
|
||||||
|
[[nodiscard]]
|
||||||
static std::pmr::vector<Face> create_initial_tetra_faces(std::pmr::memory_resource& mem_resource,
|
static std::pmr::vector<Face> create_initial_tetra_faces(std::pmr::memory_resource& mem_resource,
|
||||||
const std::pmr::vector<VectorType>& vertexes)
|
const std::pmr::vector<VectorType>& vertexes)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user