mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-25 22:25:21 +00:00
Compare commits
1 Commits
nightly-bu
...
chore/aabb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af0a02ffa9 |
@@ -32,7 +32,8 @@ namespace AABBTreeLines {
|
|||||||
{
|
{
|
||||||
Vec<LineType::Dim, typename LineType::Scalar> nearest_point;
|
Vec<LineType::Dim, typename LineType::Scalar> nearest_point;
|
||||||
const LineType& line = lines[primitive_index];
|
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>();
|
return nearest_point.template cast<ScalarType>();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user