Bugfix: wrong slicing (error in XS port). #1469
This commit is contained in:
parent
ac93e15c98
commit
d59e62c9d8
@ -289,9 +289,7 @@ TriangleMesh::slice(const std::vector<double> &z)
|
|||||||
/* We assume that this method is never being called for horizontal
|
/* We assume that this method is never being called for horizontal
|
||||||
facets, so no other edge is going to be on this layer. */
|
facets, so no other edge is going to be on this layer. */
|
||||||
IntersectionLine line;
|
IntersectionLine line;
|
||||||
if (this->stl.v_indices[facet_idx].vertex[0] < slice_z
|
if (facet->vertex[0].z < slice_z || facet->vertex[1].z < slice_z || facet->vertex[2].z < slice_z) {
|
||||||
|| this->stl.v_indices[facet_idx].vertex[1] < slice_z
|
|
||||||
|| this->stl.v_indices[facet_idx].vertex[2] < slice_z) {
|
|
||||||
line.edge_type = feTop;
|
line.edge_type = feTop;
|
||||||
std::swap(a, b);
|
std::swap(a, b);
|
||||||
std::swap(a_id, b_id);
|
std::swap(a_id, b_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user