cgma
section.cpp File Reference

makept, another simple C++ driver for CGM More...

#include <cassert>
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "OCCQueryEngine.hpp"
#include "CubitMessage.hpp"
#include "Body.hpp"
#include "RefVolume.hpp"
#include "RefFace.hpp"
#include "RefEdge.hpp"
#include "RefVertex.hpp"
#include "CastTo.hpp"
#include "OCCModifyEngine.hpp"
#include "OCCLump.hpp"
#include "OCCBody.hpp"
#include "OCCSurface.hpp"
#include "OCCCurve.hpp"
#include "OCCShell.hpp"
#include "TopoDS_Shape.hxx"
#include "InitCGMA.hpp"
#include "CubitCompat.hpp"

Go to the source code of this file.

Defines

#define SRCDIR   .
#define STRINGIFY_(X)   #X
#define STRINGIFY(X)   STRINGIFY_(X)
#define SRCPATH   STRINGIFY(SRCDIR) "/"
#define PRINT_SEPARATOR   PRINT_INFO("=======================================\n");

Functions

CubitStatus read_geometry (int, const char **, bool local=false)
CubitStatus make_Point ()
int main (int argc, char **argv)

Detailed Description

makept, another simple C++ driver for CGM

This program acts as a simple driver for CGM. It reads in a geometry, and performs varies checks for bodies, surfaces, curves and vertices.

Definition in file section.cpp.


Define Documentation

#define PRINT_SEPARATOR   PRINT_INFO("=======================================\n");

Definition at line 45 of file section.cpp.

#define SRCDIR   .

Definition at line 34 of file section.cpp.

#define SRCPATH   STRINGIFY(SRCDIR) "/"

Definition at line 39 of file section.cpp.

#define STRINGIFY (   X)    STRINGIFY_(X)

Definition at line 38 of file section.cpp.

#define STRINGIFY_ (   X)    #X

Definition at line 37 of file section.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 49 of file section.cpp.

{
  CubitStatus status = InitCGMA::initialize_cgma("OCC");
  if (CUBIT_SUCCESS != status) return 1;

  //Do make point.
  status = make_Point();
  if (status == CUBIT_FAILURE) 
     PRINT_INFO("Operation Failed");

  int ret_val = ( CubitMessage::instance()->error_count() );
  if ( ret_val != 0 )
  {
    PRINT_ERROR("Errors found during Mergechk session.\n");
  }
  else
    ret_val = 0;

  return ret_val;
  
}
CubitStatus read_geometry ( int  num_files,
const char **  argv,
bool  local 
)

attribs module: list, modify attributes in a give model or models

Arguments: file name(s) of geometry files in which to look

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines