///|/ Copyright (c) Prusa Research 2022 Pavel Mikuš @Godrak ///|/ ///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher ///|/ #ifndef SRC_LIBSLIC3R_TRIANGLESETSAMPLING_HPP_ #define SRC_LIBSLIC3R_TRIANGLESETSAMPLING_HPP_ #include #include #include #include "libslic3r/Point.hpp" struct indexed_triangle_set; namespace Slic3r { struct TriangleSetSamples { float total_area; std::vector positions; std::vector normals; std::vector triangle_indices; }; TriangleSetSamples sample_its_uniform_parallel(size_t samples_count, const indexed_triangle_set &triangle_set); } #endif /* SRC_LIBSLIC3R_TRIANGLESETSAMPLING_HPP_ */