#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/SupportPointGenerator.hpp>
|
| bool | collides_with (const Vec3f &pos, float radius, Grid::const_iterator it_begin, Grid::const_iterator it_end) |
◆ Grid
◆ cell_id()
| Vec3i32 Slic3r::sla::SupportPointGenerator::PointGrid3D::cell_id |
( |
const Vec3f & | pos | ) |
|
|
inline |
◆ collides_with() [1/2]
| bool Slic3r::sla::SupportPointGenerator::PointGrid3D::collides_with |
( |
const Vec2f & | pos, |
|
|
float | print_z, |
|
|
float | radius ) |
|
inline |
175 {
178 std::pair<Grid::const_iterator, Grid::const_iterator> it_pair =
grid.equal_range(cell);
179 if (
collides_with(pos3d, radius, it_pair.first, it_pair.second))
180 return true;
181 for (int i = -1; i < 2; ++ i)
182 for (int j = -1; j < 2; ++ j)
183 for (int k = -1; k < 1; ++ k) {
184 if (i == 0 && j == 0 && k == 0)
185 continue;
186 it_pair =
grid.equal_range(cell +
Vec3i32(i, j, k));
187 if (
collides_with(pos3d, radius, it_pair.first, it_pair.second))
188 return true;
189 }
190 return false;
191 }
Eigen::Matrix< float, 3, 1, Eigen::DontAlign > Vec3f
Definition Point.hpp:65
Vec3i32 cell_id(const Vec3f &pos)
Definition SupportPointGenerator.hpp:162
Grid grid
Definition SupportPointGenerator.hpp:160
bool collides_with(const Vec2f &pos, float print_z, float radius)
Definition SupportPointGenerator.hpp:175
References cell_id(), collides_with(), grid, and Slic3r::sla::pos().
Referenced by collides_with(), and Slic3r::sla::SupportPointGenerator::uniformly_cover().
◆ collides_with() [2/2]
| bool Slic3r::sla::SupportPointGenerator::PointGrid3D::collides_with |
( |
const Vec3f & | pos, |
|
|
float | radius, |
|
|
Grid::const_iterator | it_begin, |
|
|
Grid::const_iterator | it_end ) |
|
inlineprivate |
194 {
195 for (Grid::const_iterator it = it_begin; it != it_end; ++ it) {
196 float dist2 = (it->second.position -
pos).squaredNorm();
197 if (dist2 < radius * radius)
198 return true;
199 }
200 return false;
201 }
References Slic3r::sla::pos().
◆ insert()
| void Slic3r::sla::SupportPointGenerator::PointGrid3D::insert |
( |
const Vec2f & | pos, |
|
|
Structure * | island ) |
|
inline |
◆ cell_size
| Vec3f Slic3r::sla::SupportPointGenerator::PointGrid3D::cell_size |
◆ grid
| Grid Slic3r::sla::SupportPointGenerator::PointGrid3D::grid |
The documentation for this struct was generated from the following file: