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:
2005-11-30 17:38:41 +00:00
parent 738d3e4ae3
commit ce3164e259
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -2022,9 +2022,11 @@ void special_editmenu(void)
waitcursor(1); waitcursor(1);
ret = NewBooleanMesh(BASACT,base_select,nr); ret = NewBooleanMesh(BASACT,base_select,nr);
if (ret==0) { if (ret==0) {
error("An internal error occurred -- sorry!"); error("An internal error occurred");
} else if(ret==-1) { } else if(ret==-1) {
error("Selected meshes must have faces to perform boolean operations"); 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"); else BIF_undo_push("Boolean");
waitcursor(0); waitcursor(0);