Virtual Testbed
Ship dynamics simulator for extreme conditions
Classes | Enumerations | Functions
vtb::assets Namespace Reference

Import/convert/export 3-d objects. More...

Classes

class  Converter
 
class  File_input_stream
 
class  File_output_stream
 
class  Options
 

Enumerations

enum  Format {
  Unspecified,
  OBJ,
  STL,
  VSL,
  BSP,
  IGES,
  RMS,
  Polyhedron
}
 

Functions

template<class T >
import_asset (Options options)
 
template<class To , class From >
To convert (const From &from, Options options)
 
template<class T >
convert (std::any from, Options options)
 
template<class T >
void export_asset (const T &asset, Options options)
 
void export_asset (std::any asset, Options options)
 
template<class To , class From >
To convert (std::any from, Options options)
 
const char * to_string (Format rhs)
 
Format string_to_format (std::string s)
 
const char * to_extension (Format rhs)
 
Format filename_to_format (std::string filename)
 
std::ostreamoperator<< (std::ostream &out, Format rhs)
 
std::istreamoperator>> (std::istream &in, Format &rhs)
 
const std::type_infoto_type_info (Format rhs)
 
Format type_info_to_format (const std::type_info &type)
 
std::vector< std::stringsupported_extensions ()
 
std::string make_output_file (const std::string &input_file, const std::string &output_directory, Format to, const Options &options)
 

Detailed Description

Import/convert/export 3-d objects.