Example for ThreeDOut object, writes a wrl with an image
- Author
- MIP
#include "Utils/ThreeDOut.hh"
#include <Base/Common/BIASpragma.hh>
using namespace std;
using namespace BIAS;
int main()
{
P1[0] = 5;
P1[1] = -1;
P2[0] = 3;
P2[1] = 2;
Color[0]=255;
Color[1]=0;
Color[2]=128;
Cov[0][0] = 0.5;
Cov[1][1] = 0.8;
P2[2] = 0.8;
Color[1] = 255;
#define IMSIZE 5
for (unsigned int i=0; i<IMSIZE*IMSIZE; i++)
= (255 / (IMSIZE*IMSIZE)) * i;
offset1(5,-5,12), offset2(17,-5, 2);
1, "testbillboard1", false);
T.
AddImage(UL+offset1, UR+offset1, LL+offset1, IMSIZE, IMSIZE,
1, "testbillboard2", true);
K[0][2] = 256;
K[1][2] = 256;
cout<<"K is "<<K<<endl;
K[0][0] = K[1][1] = 256;
return 0;
}