[cgma-dev] r4790 - cgm/trunk/itaps
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Mon May 2 13:08:12 CDT 2011
Author: janehu
Date: 2011-05-02 13:08:11 -0500 (Mon, 02 May 2011)
New Revision: 4790
Modified:
cgm/trunk/itaps/iGeom_CGMA.cc
Log:
Added iGeom function to pass out facet info for RefFaces and RefEdges.
Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc 2011-05-02 16:48:16 UTC (rev 4789)
+++ cgm/trunk/itaps/iGeom_CGMA.cc 2011-05-02 18:08:11 UTC (rev 4790)
@@ -22,7 +22,7 @@
*/
#include "iGeom.h"
#include "InitCGMA.hpp"
-
+#include "GMem.hpp"
#include <iostream>
#include <math.h>
#include "GeometryQueryTool.hpp"
@@ -278,7 +278,20 @@
DLIList<RefEntity*>& target_list,
int* err );
+static
+CubitStatus iGeom_get_graphics(RefFace* face,
+ DLIList<CubitVector*>& point_list,
+ DLIList<int>& facet_list,
+ unsigned short normal_tolerance = 15,
+ double distance_tolerance = 0,
+ double longest_edge = 0) ;
+static
+CubitStatus iGeom_get_graphics(RefEdge* edge,
+ DLIList<CubitVector*>& point_list,
+ DLIList<int>& facet_list,
+ double tolerance = 0.0 ) ;
+
static CubitStatus init_cgm( const std::string& engine )
{
CubitStatus status;
@@ -7049,3 +7062,66 @@
RETURN(iBase_SUCCESS);
}
+
+static
+CubitStatus iGeom_get_graphics(RefFace* face,
+ DLIList<CubitVector*>& point_list,
+ DLIList<int>& facet_list,
+ unsigned short normal_tolerance ,
+ double distance_tolerance ,
+ double longest_edge )
+{
+ GMem facets;
+ CubitStatus resl = face->get_graphics(facets, normal_tolerance,
+ distance_tolerance, longest_edge);
+ if(resl == CUBIT_FAILURE)
More information about the cgma-dev
mailing list