示例#1
0
文件: cubeObj.cpp 项目: Nand-e/2to3d
CubeObj::CubeObj(const QString name, ObjectItem *parent, Project & pro1 )
    : pro ( pro1 ), EmptyObj ( name, parent )
{
    makeobject();
    textureID = 0;
    textureMat = new cv::Mat (cv::Size(500,500),CV_8UC3);
    for ( int i=0; i < 6; i++)  textureIDs[i] = 0;
}
示例#2
0
文件: quadObj.cpp 项目: Nand-e/2to3d
QuadObj::QuadObj(const QString name, ObjectItem *parent, Project &pro1) :
    pro ( pro1 ) ,  EmptyObj ( name , parent)
{
    rotation.setToIdentity();
    pos   = QVector3D ( -2, -1,-3 );
    rot   = QVector3D ( 0, 0, 0 );
    scale = QVector3D ( 1, 1, 1 );
    makeobject();
    textureID = 0;
    textureMat = new cv::Mat (cv::Size(500,500),CV_8UC3);
}
示例#3
0
文件: array.c 项目: H2CO3/Sparkling
/* convenience value constructor */
SpnValue spn_makearray(void)
{
	return makeobject(spn_array_new());
}