Skip to content

Commit

Permalink
Merge pull request #1173 from jkunimune/patch-2
Browse files Browse the repository at this point in the history
add documentation to Mesh.boolean()
  • Loading branch information
marcomusy authored Aug 16, 2024
2 parents dba7ead + 85882c0 commit bfa7a6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vedo/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,14 @@ def boolean(self, operation: str, mesh2, method=0, tol=None) -> Self:
Use `operation` for the allowed operations `['plus', 'intersect', 'minus']`.
Two possible algorithms are available by changing `method`.
Two possible algorithms are available.
Setting `method` to 0 (the default) uses the boolean operation algorithm
written by Cory Quammen, Chris Weigle, and Russ Taylor (https://doi.org/10.54294/216g01);
setting `method` to 1 will use the "loop" boolean algorithm
written by Adam Updegrove (https://doi.org/10.1016/j.advengsoft.2016.01.015).
Use `tol` to specify the absolute tolerance used to determine
when the distance between two points is considered to be zero (defaults to 1e-6).
Example:
- [boolean.py](https://github.com/marcomusy/vedo/tree/master/examples/basic/boolean.py)
Expand Down

0 comments on commit bfa7a6b

Please sign in to comment.