[cgma-dev] r1813 - in cgm/trunk/geom: . facet virtual
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu May 15 14:54:12 CDT 2008
Author: kraftche
Date: 2008-05-15 14:54:11 -0500 (Thu, 15 May 2008)
New Revision: 1813
Modified:
cgm/trunk/geom/Body.cpp
cgm/trunk/geom/facet/FacetBody.hpp
cgm/trunk/geom/virtual/CompositeBody.hpp
cgm/trunk/geom/virtual/PartitionBody.hpp
Log:
Back out most of revsion 1782 (April 28, 2008):
- breaks is_sheet_body() and related functions for all geometry
engines except OCC (virtual, facet, etc.)
- breaks build of ACIS engine
- might make Body::is_sheet_body() work for OCC, but is an incomplete
solution because Shell::is_sheet(), BTE::is_nonmanifold(), etc.
are still broken for OCC
- if OCC correctly returns relative sense between Surfaces and
ShellSMs, then no change to RefEntity-level code is necessary
Modified: cgm/trunk/geom/Body.cpp
===================================================================
--- cgm/trunk/geom/Body.cpp 2008-05-15 15:22:20 UTC (rev 1812)
+++ cgm/trunk/geom/Body.cpp 2008-05-15 19:54:11 UTC (rev 1813)
@@ -193,19 +193,8 @@
DLIList<RefVolume*> volumes;
ref_volumes(volumes);
while (volumes.size())
- {
if (!volumes.pop()->is_sheet())
- {
- //OCC sheet body just has one face or shell, not like Acis
- BodySM* bodysm = get_body_sm_ptr();
- if (bodysm == NULL)
- {
- PRINT_ERROR("Body %d is invalid -- no attached BodySM.\n", this->id());
- return CUBIT_FALSE;
- }
- return bodysm->is_sheet_body();
- }
- }
+ return CUBIT_FALSE;
return CUBIT_TRUE;
}
Modified: cgm/trunk/geom/facet/FacetBody.hpp
===================================================================
--- cgm/trunk/geom/facet/FacetBody.hpp 2008-05-15 15:22:20 UTC (rev 1812)
+++ cgm/trunk/geom/facet/FacetBody.hpp 2008-05-15 19:54:11 UTC (rev 1813)
@@ -191,7 +191,6 @@
virtual CubitPointContainment point_containment( const CubitVector& pos );
- virtual CubitBoolean is_sheet_body(){return CUBIT_FALSE;}
protected:
private:
Modified: cgm/trunk/geom/virtual/CompositeBody.hpp
===================================================================
--- cgm/trunk/geom/virtual/CompositeBody.hpp 2008-05-15 15:22:20 UTC (rev 1812)
+++ cgm/trunk/geom/virtual/CompositeBody.hpp 2008-05-15 19:54:11 UTC (rev 1813)
@@ -78,7 +78,6 @@
void combine( CompositeBody* other );
- CubitBoolean is_sheet_body(){return CUBIT_FALSE;}
private:
CompositeLump* firstLump;
Modified: cgm/trunk/geom/virtual/PartitionBody.hpp
===================================================================
--- cgm/trunk/geom/virtual/PartitionBody.hpp 2008-05-15 15:22:20 UTC (rev 1812)
+++ cgm/trunk/geom/virtual/PartitionBody.hpp 2008-05-15 19:54:11 UTC (rev 1813)
@@ -100,8 +100,7 @@
void transform(const CubitTransformMatrix&) {}
void get_all_children( DLIList<PartitionEntity*>& list );
-
- virtual CubitBoolean is_sheet_body(){return CUBIT_FALSE;}
+
protected:
private:
More information about the cgma-dev
mailing list