OSDN Git Service

add swig python extension.
[meshio/meshio.git] / include / mqo.h
index e9424f0..a7c6781 100644 (file)
 namespace meshio {
 namespace mqo {
 
-typedef la::Vector2 Vector2;
-typedef la::Vector3 Vector3;
-typedef la::Vector4 Vector4;
-typedef color::bRGBA RGBA;
+typedef ::meshio::la::Vector2 Vector2;
+typedef ::meshio::la::Vector3 Vector3;
+typedef ::meshio::la::Vector4 Vector4;
+typedef ::meshio::color::fRGBA RGBA;
 
 //! Scene\83`\83\83\83\93\83N
 struct Scene
@@ -138,6 +138,8 @@ struct Face
                        uv[2]=Vector2();
                        uv[3]=Vector2();
                }
+       int getIndex(int i){ return indices[i]; }
+       Vector2 getUV(int i){ return uv[i]; }
 };
 inline std::ostream &operator<<(std::ostream &os, const Face &rhs)
 {
@@ -207,9 +209,14 @@ struct Object
        float smoothing;
        Vector3 color;
        int color_type;
+       int mirror;
 
        std::vector<Vector3> vertices;
        std::vector<Face> faces;
+
+       Object()
+               : mirror(0)
+       {}
 };
 inline std::ostream &operator<<(std::ostream &os, const Object &rhs)
 {