|
| MGStl (void) |
| デフォルトコンストラクタ [詳解]
|
|
| MGStl (const MGStl &stl) |
| コピーコンストラクタ [詳解]
|
|
| MGStl (const mgTL2Triangles &tris) |
| conversion constructor from tessellation data. [詳解]
|
|
| MGStl (double error, const mgTL2Triangles &tris) |
|
| MGStl (const std::vector< mgTL2Triangles > &tlDataVector) |
| conversion constructor from tessellation data. [詳解]
|
|
| MGStl (int nTriang, const int *triang, const double *verts) |
|
| MGStl (const std::vector< MGPosition > &vertices, const std::vector< int > &indices) |
|
| ~MGStl (void) |
| 仮想デストラクタ. [詳解]
|
|
MGStl & | operator+= (const MGVector &v) |
| 全ての頂点とボックスの座標に指定したMGVectorの値を加算. [詳解]
|
|
MGStl & | operator-= (const MGVector &v) |
| 全ての頂点とボックスの座標から指定したMGVectorの値を引く. [詳解]
|
|
MGStl & | operator*= (double scale) |
| 全ての頂点とボックスの座標に指定した値を掛ける. [詳解]
|
|
MGStl & | operator*= (const MGMatrix &mat) |
| 与えられた変換を行う. [詳解]
|
|
MGStl & | operator*= (const MGTransf &tr) |
| 与えられた変換によるトランスフォームを行う. [詳解]
|
|
bool | operator== (const MGStl &stl) |
| 2つのMGStlオブジェクトが等しいか判定する. [詳解]
|
|
MGStl & | operator= (const MGStl &stl) |
| 2つのMGStlオブジェクトを代入する. [詳解]
|
|
std::ostream & | out (std::ostream &ostrm) const |
| Output virtual function. [詳解]
|
|
const MGBox & | box () const |
|
MGStl * | clone () const |
|
long | identify_type () const |
| Return This object's typeID. [詳解]
|
|
void | drawWire (mgVBO &vbo, double span_length, int line_density=1) const |
|
void | draw3DVertex (mgVBO &vbo) const |
|
void | shade (mgVBO &vbo, const MGDrawParam ¶, mgVBO::ELEMENT_TARGET target=mgVBO::SHADING) const |
| Shade the object in world coordinates. [詳解]
|
|
MGisects | intersection (const MGObject &obj2) const |
|
MGisects | intersection (const MGCurve &obj2) const |
|
MGisects | intersection (const MGFSurface &obj2) const |
|
MGisects | intersection (const MGSurface &obj2) const |
|
MGisects | intersection (const MGFace &obj2) const |
|
MGisects | intersection (const MGShell &obj2) const |
|
int | manifold_dimension () const |
| Get manifold dimension. [詳解]
|
|
void | WriteMembers (MGOfstream &buf) const |
| Write all member data. [詳解]
|
|
void | ReadMembers (MGIfstream &buf) |
| Read all member data. [詳解]
|
|
const std::vector< MGPosition > & | positions () const |
| return the ref to m_vecPos. [詳解]
|
|
std::vector< MGPosition > & | positions () |
|
const std::vector
< MGUnit_vector > & | normals () const |
| return the ref to m_vecPos. [詳解]
|
|
std::vector< MGUnit_vector > & | normals () |
|
int | GetTriangleCount () const |
|
void | GetVertIndices (int i, int pos[3]) const |
| 指定した三角形の頂点座標が入れられている配列のインデックスを取得する. [詳解]
|
|
int | LoadFile (const TCHAR *strFilePath) |
|
int | SaveAscii (std::ofstream &fout) const |
|
int | SaveBinary (const TCHAR *rSTLFilePath) const |
|
void | push_back_triangle (const MGPosition &pos1, const MGPosition &pos2, const MGPosition &pos3, triangleMap &VertexMap) |
|
void | display_arrows (mgSysGL &sgl) const |
| 三角形ごとに法線を表示する. [詳解]
|
|
void | set_all_data (const std::vector< MGPosition > &vertices, const std::vector< int > &indices) |
| メンバーデータを直接セットする. [詳解]
|
|
void | update_bounds () |
| Update the bounds. [詳解]
|
|
void | update_normals () |
| Update the all normals of the triangles. [詳解]
|
|
std::string | whoami () const |
| オブジェクト名を返却する. [詳解]
|
|
int | SaveObjFormatFromStl (std::ofstream &fout) const |
|
| MGObject () |
| Void constructor(初期化なしでオブジェクトを作成する。) [詳解]
|
|
| MGObject (const MGObject &obj2) |
| Copy constructor. [詳解]
|
|
virtual | ~MGObject () |
| Virtual Destructor. [詳解]
|
|
virtual MGObject & | operator= (const MGObject &obj2) |
|
MGAppearance * | appearance () |
|
const MGAppearance * | appearance () const |
|
MGAppearance * | ensure_appearance () |
|
virtual void | make_display_list (MGCL::VIEWMODE vmode=MGCL::DONTCARE) const |
| Make a display list of this gel. [詳解]
|
|
bool | has_common (const MGObject &obj2) const |
|
const MGObject * | includes_object () const |
| Test if this gel includes an object. [詳解]
|
|
MGObject * | includes_object () |
| Test if this gel includes an object. [詳解]
|
|
virtual MGisects | intersection (const MGPoint &obj2) const |
|
virtual MGPosition | pick_closest (const MGStraight &sl) const |
|
void | remove_appearance () |
| Remove the MGAppearance of this MGAttribedGel. [詳解]
|
|
virtual MGObject * | object () |
| Return MGObject pointer if this MGGel is an MGObject, else return null. [詳解]
|
|
virtual const MGObject * | object () const |
|
virtual const MGFSurface * | fsurface () const |
| Get the MGFSurface pointer if this is MGSurface or MGFace. [詳解]
|
|
virtual MGFSurface * | fsurface () |
|
void | set_appearance (const MGAppearance &appr2) |
|
virtual void | transform (const MGVector &v) |
| Transform the gel by the argument. [詳解]
|
|
virtual void | transform (double scale) |
| translation [詳解]
|
|
virtual void | transform (const MGMatrix &mat) |
| scaling. [詳解]
|
|
virtual void | transform (const MGTransf &tr) |
| matrix transformation. [詳解]
|
|
| MGAttribedGel () |
| void constructor. [詳解]
|
|
| MGAttribedGel (const MGAttribedGel &gel2) |
| copy constructor. [詳解]
|
|
virtual MGAttribedGel & | operator= (const MGAttribedGel &gel2) |
|
virtual | ~MGAttribedGel () |
|
void | copy_appearance (const MGAttribedGel &gel2) |
|
mgVBO * | dlist_name () const |
|
virtual bool | displayList_is_made (MGCL::VIEWMODE vmode) const |
| Judge if the display list for vmode is made or not. [詳解]
|
|
void | deleteDlistName () const |
|
virtual void | drawAttrib (mgVBO &vbo, bool no_color=false) const |
| Process of draw or render attributes. [詳解]
|
|
virtual void | render_attribute () const |
|
virtual int | get_draw_attrib_mask () const |
| Obtain attribute mask for glPushAttrib(). [詳解]
|
|
virtual int | get_render_attrib_mask () const |
|
int | getVBOElementsNumber () const |
| Get the number of elements of m_dlistName. [詳解]
|
|
int | getVBOShaderElementsNumber () const |
| Get the number of shading elements of m_dlistName. [詳解]
|
|
virtual bool | no_display () const |
|
void | remove_GLattrib (long tid) |
| Removed the attribute of specified type. [詳解]
|
|
virtual void | set_GLattrib (MGGLAttrib *attr) |
|
virtual void | set_display () |
| Set this group as display or no display group. [詳解]
|
|
virtual void | set_no_display () |
|
bool | visible () const |
|
void | set_name (const MGName &newName) |
|
const MGName * | get_name () const |
|
void | set_color (const MGColor &newColor) |
|
const MGColor * | get_color () const |
|
void | setDlistName (mgVBO *vbo=0) const |
|
void | setDirty (bool is_dirty) const |
| Set dirty flag(s) of this VBO(m_dlistName). [詳解]
|
|
virtual | ~MGGel () |
| Virtual Destructor. [詳解]
|
|
virtual MGGel & | operator= (const MGGel &gel2) |
|
virtual bool | operator== (const MGGel &gel2) const |
| Comparison. [詳解]
|
|
virtual bool | operator!= (const MGGel &gel2) const |
|
virtual bool | operator< (const MGGel &gel2) const |
|
virtual bool | operator> (const MGGel &gel2) const |
|
virtual int | out_to_IGES (MGIgesOfstream &igesfile, int SubordinateEntitySwitch=0) const |
|
virtual MGAttrib * | attrib () |
| Return MGAttrib pointer if this MGGel is an MGAttrib, else return null. [詳解]
|
|
virtual const MGAttrib * | attrib () const |
|
virtual MGGroup * | group () |
| Return MGGroup pointer if this MGGel is an MGGroup, else return null. [詳解]
|
|
virtual const MGGroup * | group () const |
|
virtual MGGeometry * | geometry () |
| Return MGGeometry pointer if this MGGel is an MGGeometry, else return null. [詳解]
|
|
virtual const MGGeometry * | geometry () const |
|
virtual MGPoint * | point () |
| Return point pointer if this MGGel is an MGPoint, else return null. [詳解]
|
|
virtual const MGPoint * | point () const |
|
virtual MGCurve * | curve () |
| Return curve pointer if this MGGel is an MGCurve, else return null. [詳解]
|
|
virtual const MGCurve * | curve () const |
|
virtual MGSurface * | surf () |
| Return MGSurface pointer if this MGGel is an MGSurface, else return null. [詳解]
|
|
virtual const MGSurface * | surf () const |
|
virtual MGTopology * | topology () |
| Return MGTopology pointer if this MGGel is an MGTopology, else return null. [詳解]
|
|
virtual const MGTopology * | topology () const |
|
virtual MGFace * | face () |
| Return MGFace pointer if this MGGel is an MGFace, else return null. [詳解]
|
|
virtual const MGFace * | face () const |
|
virtual MGShell * | shell () |
| Return MGShell pointer if this MGGel is an MGShell, else return null. [詳解]
|
|
virtual const MGShell * | shell () const |
|
std::string | string_content () const |
|
bool | type_is (const MGAbstractGels &types) const |
|
virtual void | display_break_points (mgSysGL &sgl) const |
|
virtual void | display_control_polygon (mgSysGL &sgl) const |
|
virtual void | display_curvatures (mgSysGL &sgl, double scale, int density, bool use_radius) const |
|
MGStl is a concrete class which represents an STL information.
このクラスは複数の三角形を配列として保持する. 全ての三角形の頂点の座標はファイルから読み込んだ順で、重複を取り除いて配列に格納される. m_indicesにはファイルから読み込んだ順番で各三角形の頂点の並びが格納されており その各要素には該当する頂点座標の配列の添え字が格納される. 例えば、i番目の三角形の各頂点の座標の添え字はindices[i*3]、indices[i*3+1]、indices[i*3+2] という以上の順序で格納されている.