Skip to content

Commit

Permalink
allow graincutshape to cut away from the shape. now the test succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
JLeliaert committed Oct 3, 2024
1 parent aa02cd0 commit 5d7dc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/ext_make3dgrains.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (t *tesselation3d) RegionOf(x, y, z float64) int {
}

// Check if the nearest point's region should be returned
if t.shape(x, y, z) || (t.shape(nearest.x, nearest.y, nearest.z) && GrainCutShape) {
if ((t.shape(x, y, z) && GrainCutShape==false)|| (t.shape(nearest.x, nearest.y, nearest.z) && GrainCutShape)) {
return int(nearest.region)
}

Expand Down

0 comments on commit 5d7dc83

Please sign in to comment.