関数
STL形式のポリゴンデータの入出力
CADデータ入出力

関数

template<class T >
bool mist::read_stl (facet_list< T > &facets, const std::wstring &filename)
 STL(ASCII,バイナリ)形式のファイルからポリゴンデータを読み込む
template<class T >
bool mist::read_stl (facet_list< T > &facets, const std::string &filename)
 STL(ASCII,バイナリ)形式のファイルからポリゴンデータを読み込む
template<class T >
bool mist::write_stl (const facet_list< T > &facets, const std::wstring &filename, bool use_ascii_format=true)
 ポリゴンデータをSTL(ASCII,バイナリ)形式で出力する
template<class T >
bool mist::write_stl (const facet_list< T > &facets, const std::string &filename, bool use_ascii_format=true)
 ポリゴンデータをSTL(ASCII,バイナリ)形式で出力する

説明

STL(ASCII,バイナリ)形式のファイルからポリゴンデータを読み込む. また,ポリゴンデータからSTL(ASCII,バイナリ)形式のファイルへの書き出しをサポート.

次のヘッダをインクルードする
#include <mist/io/stl.h>

関数

template<class T >
bool mist::read_stl ( facet_list< T > &  facets,
const std::wstring &  filename 
)

STL(ASCII,バイナリ)形式のファイルからポリゴンデータを読み込む

引数
[out]facets… ポリゴンのリスト
[in]filename… 出力ファイル名
戻り値
true… ポリゴンデータの読み込みに成功
false… ポリゴンデータの読み込みに失敗

参照先 mist::wstr2str().

template<class T >
bool mist::read_stl ( facet_list< T > &  facets,
const std::string &  filename 
)

STL(ASCII,バイナリ)形式のファイルからポリゴンデータを読み込む

引数
[out]facets… ポリゴンのリスト
[in]filename… 出力ファイル名
戻り値
true… ポリゴンデータの読み込みに成功
false… ポリゴンデータの読み込みに失敗
template<class T >
bool mist::write_stl ( const facet_list< T > &  facets,
const std::wstring &  filename,
bool  use_ascii_format = true 
)
inline

ポリゴンデータをSTL(ASCII,バイナリ)形式で出力する

引数
[in]facets… ポリゴンのリスト
[in]filename… 出力ファイル名
[in]use_ascii_format… ASCII形式で出力するかどうか
戻り値
true… ファイルへの書き込みに成功
false… ファイルへの書き込みに失敗

参照先 mist::wstr2str().

template<class T >
bool mist::write_stl ( const facet_list< T > &  facets,
const std::string &  filename,
bool  use_ascii_format = true 
)
inline

ポリゴンデータをSTL(ASCII,バイナリ)形式で出力する

引数
[in]facets… ポリゴンのリスト
[in]filename… 出力ファイル名
[in]use_ascii_format… ASCII形式で出力するかどうか
戻り値
true… ファイルへの書き込みに成功
false… ファイルへの書き込みに失敗

Generated on Wed Nov 12 2014 19:44:28 for MIST by doxygen 1.8.1.2