mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Add function for check existence of triangle in define radius
This commit is contained in:
parent
eaaff4e707
commit
fb24d8167a
2 changed files with 35 additions and 1 deletions
|
@ -152,7 +152,7 @@ void FillAdaptive::expand_cube(
|
|||
triangleMesh.its.vertices, triangleMesh.its.indices, distanceTree, child_center_transformed,
|
||||
closest_triangle_idx,closest_point);
|
||||
|
||||
if(distance_squared <= cube_radius_squared) {
|
||||
if(AABBTreeIndirect::is_any_triangle_in_radius(triangleMesh.its.vertices, triangleMesh.its.indices, distanceTree, child_center_transformed, cube_radius_squared)) {
|
||||
cube->children.push_back(new Cube{child_center_transformed, cube->depth - 1, cubes_properties[cube->depth - 1]});
|
||||
FillAdaptive::expand_cube(cube->children.back(), cubes_properties, rotation_matrix, distanceTree, triangleMesh);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue