Page Menu
Home
Search
Configure Global Search
Log In
Files
F1721
boolean-hack.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Ken Hughes (khughes)
Nov 13 2013, 12:59 PM
Size
899 B
Subscribers
None
boolean-hack.patch
View Options
Index: intern/boolop/intern/BOP_Face2Face.cpp
===================================================================
RCS file: /cvsroot/bf-blender/blender/intern/boolop/intern/BOP_Face2Face.cpp,v
retrieving revision 1.1
diff -u -r1.1 BOP_Face2Face.cpp
--- intern/boolop/intern/BOP_Face2Face.cpp 28 Oct 2005 20:17:27 -0000 1.1
+++ intern/boolop/intern/BOP_Face2Face.cpp 7 Nov 2005 20:15:06 -0000
@@ -147,7 +147,12 @@
*/
void BOP_Face2Face(BOP_Mesh *mesh, BOP_Faces *facesA, BOP_Faces *facesB)
{
+ int term = facesA->size() * facesB->size() * 128;
for(unsigned int idxFaceA=0;idxFaceA<facesA->size();idxFaceA++) {
+ if (idxFaceA > term) {
+ printf ("runaway loop in BOP_Face2Face: terminating with idxFaceA = %d\n",idxFaceA);
+ break;
+ }
BOP_Face *faceA = (*facesA)[idxFaceA];
MT_Plane3 planeA = faceA->getPlane();
MT_Point3 p1 = mesh->getVertex(faceA->getVertex(0))->getPoint();
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
06/40/3fe3bd3d455a03db2d0e8c863cd9
Event Timeline
Log In to Comment