[brlcad-commits] SF.net SVN: brlcad:[66396] brlcad/trunk/src/libbrep/ shape_recognition_pipeline.cp
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2015-10-06 00:39:04
|
Revision: 66396 http://sourceforge.net/p/brlcad/code/66396 Author: starseeker Date: 2015-10-06 00:39:02 +0000 (Tue, 06 Oct 2015) Log Message: ----------- Don't try types we don't handle yet. Modified Paths: -------------- brlcad/trunk/src/libbrep/shape_recognition_pipeline.cpp Modified: brlcad/trunk/src/libbrep/shape_recognition_pipeline.cpp =================================================================== --- brlcad/trunk/src/libbrep/shape_recognition_pipeline.cpp 2015-10-06 00:21:01 UTC (rev 66395) +++ brlcad/trunk/src/libbrep/shape_recognition_pipeline.cpp 2015-10-06 00:39:02 UTC (rev 66396) @@ -23,6 +23,19 @@ const ON_Brep *brep = data->i->brep; + // If we hit something we don't handle yet, bail immediately. + switch (surface_type) { + case SURFACE_SPHERICAL_SECTION: + case SURFACE_SPHERE: + return 0; + break; + case SURFACE_TORUS: + return 0; + break; + default: + break; + } + // Collect faces, edges and edge midpoints. ON_SimpleArray<ON_3dPoint> edge_midpnts; std::set<int> edges; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |