mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-25 14:15:20 +00:00
Compare commits
1 Commits
fix/load-3
...
chore/aabb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af0a02ffa9 |
@@ -32,7 +32,8 @@ namespace AABBTreeLines {
|
||||
{
|
||||
Vec<LineType::Dim, typename LineType::Scalar> nearest_point;
|
||||
const LineType& line = lines[primitive_index];
|
||||
squared_distance = line_alg::distance_to_squared(line, origin.template cast<typename LineType::Scalar>(), &nearest_point);
|
||||
const Vec<LineType::Dim, typename LineType::Scalar> origin_cast = origin.template cast<typename LineType::Scalar>();
|
||||
squared_distance = line_alg::distance_to_squared(line, origin_cast, &nearest_point);
|
||||
return nearest_point.template cast<ScalarType>();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user