cgma
CubitCompat.cpp File Reference
#include "CubitCompat.h"
#include "CubitCompat.hpp"
#include "GeometryQueryTool.hpp"
#include <string.h>

Go to the source code of this file.

Defines

#define CUBIT_COMPAT_FT_ELIF(TYPE)

Functions

static Model_File_Type CubitCompat_file_type (const char *file_type)
CubitStatus CubitCompat_import_solid_model (const char *file_name, const char *file_type, const char *logfile_name, CubitBoolean heal_step, CubitBoolean import_bodies, CubitBoolean import_surfaces, CubitBoolean import_curves, CubitBoolean import_vertices, CubitBoolean free_surfaces, DLIList< RefEntity * > *imported_entities)
CubitStatus CubitCompat_export_solid_model (DLIList< RefEntity * > &ref_entity_list, const char *filename, const char *filetype, int &num_ents_exported, const CubitString &cubit_version, const char *logfile_name)

Define Documentation

#define CUBIT_COMPAT_FT_ELIF (   TYPE)
Value:
else if (!strcmp(file_type,#TYPE)) \
    return TYPE ## _TYPE

Definition at line 6 of file CubitCompat.cpp.


Function Documentation

CubitStatus CubitCompat_export_solid_model ( DLIList< RefEntity * > &  ref_entity_list,
const char *  filename,
const char *  filetype,
int &  num_ents_exported,
const CubitString cubit_version,
const char *  logfile_name 
)

Definition at line 70 of file CubitCompat.cpp.

{
//  const bool print_results = false;
//  const bool merge_globally = false;
//  const bool no_assembly_level_features = false;
  ModelExportOptions CubitCompat_opts = {1, logfile_name ? logfile_name : "" }; 

  return GeometryQueryTool::instance()->export_solid_model(
           ref_entity_list,
           filename,
           CubitCompat_file_type(filetype),
           num_ents_exported,
           cubit_version,
           CubitCompat_opts );
}
CubitStatus CubitCompat_import_solid_model ( const char *  file_name,
const char *  file_type,
const char *  logfile_name,
CubitBoolean  heal_step,
CubitBoolean  import_bodies,
CubitBoolean  import_surfaces,
CubitBoolean  import_curves,
CubitBoolean  import_vertices,
CubitBoolean  free_surfaces,
DLIList< RefEntity * > *  imported_entities 
)

Definition at line 37 of file CubitCompat.cpp.

{
  const bool print_results = false;
  const bool merge_globally = false;
  const bool no_assembly_level_features = false;
  ModelImportOptions CubitCompat_opts = { heal_step,
                                        print_results,
                                        import_bodies,
                                        import_surfaces,
                                        import_curves,
                                        import_vertices,
                                        free_surfaces,
                                        merge_globally,
                                        no_assembly_level_features,
                                        logfile_name ? logfile_name : "" };

  return GeometryQueryTool::instance()->import_solid_model( 
           file_name,
           CubitCompat_file_type(file_type),
           CubitCompat_opts,
           imported_entities );
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines