[cgma-dev] r1823 - cgm/trunk/geom/OCC
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Mon May 19 13:41:56 CDT 2008
Author: kraftche
Date: 2008-05-19 13:41:56 -0500 (Mon, 19 May 2008)
New Revision: 1823
Modified:
cgm/trunk/geom/OCC/OCCShell.hpp
cgm/trunk/geom/OCC/OCCSurface.cpp
Log:
clarify my previous change to OCCSurface.hpp
Modified: cgm/trunk/geom/OCC/OCCShell.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCShell.hpp 2008-05-19 16:53:45 UTC (rev 1822)
+++ cgm/trunk/geom/OCC/OCCShell.hpp 2008-05-19 18:41:56 UTC (rev 1823)
@@ -64,6 +64,8 @@
void set_lump(OCCLump* lump) {myLump = lump;}
void set_body(OCCBody* body) {myBody = body;}
+ bool is_sheet() const { return mySheetSurface != 0; }
+
virtual GeometryQueryEngine*
get_geometry_query_engine() const;
//R GeometryQueryEngine*
Modified: cgm/trunk/geom/OCC/OCCSurface.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCSurface.cpp 2008-05-19 16:53:45 UTC (rev 1822)
+++ cgm/trunk/geom/OCC/OCCSurface.cpp 2008-05-19 18:41:56 UTC (rev 1823)
@@ -731,10 +731,12 @@
CubitSense OCCSurface::get_shell_sense( ShellSM* shell_ptr ) const
{
OCCShell* shell = dynamic_cast<OCCShell*>(shell_ptr);
- if (!shell)
+ if (!shell) // error
return CUBIT_UNKNOWN;
- if (shell->my_surface() == this)
+
+ if (shell->is_sheet()) // relative sense is "both" for sheet
return CUBIT_UNKNOWN;
+
return CUBIT_FORWARD;
}
More information about the cgma-dev
mailing list