Fix potential crashes in SLA normal calculation routine
This commit is contained in:
parent
5ecacdc66c
commit
9ef826cb5f
2 changed files with 6 additions and 3 deletions
|
@ -517,6 +517,7 @@ bool optimize_pinhead_placement(Ex policy,
|
|||
Head &head)
|
||||
{
|
||||
Vec3d n = get_normal(m.emesh, head.pos);
|
||||
assert(std::abs(n.norm() - 1.0) < EPSILON);
|
||||
|
||||
// for all normals the spherical coordinates are generated and
|
||||
// the polar angle is saturated to 45 degrees from the bottom then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue