|
由正常的齿轮三视图生成的代码,怎么能够改成全剖视图的呢
下面是视图矩阵的一些代码
static ProMatrix identity_matrix = { {1.0, 0.0, 0.0, 0.0},////单元矩阵
{0.0, 1.0, 0.0, 0.0},
{0.0, 0.0, 1.0, 0.0},
{0.0, 0.0, 0.0, 1.0}};
void ProUtilMatrixCopy(double input[4][4],double output[4][4])
{
int i,j;
if(input == NULL)
{
for(i=0;i<4;i++)
for(j=0;j<4;j++)
output[i][j] = identity_matrix[i][j];
}
else
{
for(i=0;i<4;i++)
for(j=0;j<4;j++)
output[i][j] = input[i][j];
}
}
/*--------------------------------------------------------------------*\
创建一般视图
\*--------------------------------------------------------------------*/
ProUtilMatrixCopy(NULL, matrix);
pos[0] = 200.0;
pos[1] = 600.0;
pos[2] = 0.0;
ProDrawingGeneralviewCreate(drawing, solid, sheet, PRO_B_FALSE,pos, 1, matrix, &view); |
|