Boolean op error handling has been added. When a no closed mesh is used the follow message is showed:

"Both meshes must be a closed mesh"
This commit is contained in:
Marc Freixas 2005-11-30 17:38:41 +00:00
parent 738d3e4ae3
commit ce3164e259
2 changed files with 4 additions and 2 deletions

@ -694,7 +694,7 @@ NewBooleanMesh(
);
}
if (success) {
if (success==1) {
// descriptions of the output;
CSG_VertexIteratorDescriptor vd_o;
CSG_FaceIteratorDescriptor fd_o;

@ -2022,9 +2022,11 @@ void special_editmenu(void)
waitcursor(1);
ret = NewBooleanMesh(BASACT,base_select,nr);
if (ret==0) {
error("An internal error occurred -- sorry!");
error("An internal error occurred");
} else if(ret==-1) {
error("Selected meshes must have faces to perform boolean operations");
} else if (ret==-2) {
error("Both meshes must be a closed mesh");
}
else BIF_undo_push("Boolean");
waitcursor(0);