svxPoint P1 = { 0,0,0 };
svxPoint P2 = { 10,0,0 };
svxPoint P3 = { 10,10,0 };
svxPoint P4 = { 0,10,0 };
int L1;
cvxPartLine2pt(&P1, &P2, &L1);
int L2;
cvxPartLine2pt(&P2, &P3, &L2);
int L3;
cvxPartLine2pt(&P3, &P4, &L3);
int L4;
cvxPartLine2pt(&P4, &P1, &L4);
int countCrv = 4;
int* idCrvList = new int[countCrv];
idCrvList[0] = L1;
idCrvList[1] = L2;
idCrvList[2] = L3;
idCrvList[3] = L4;
int idList = 0;
cvxPartCrvList(countCrv, idCrvList, &idList);
svxExtrudeData extrude;
cvxPartExtrudeInit(&extrude);
extrude.idProfile= idList;
extrude.Combine = VX_BOOL_NONE;
extrude.StartType = VX_INPU_VALUE;
extrude.Start=0.0;
extrude.EndType = VX_INPU_VALUE;
extrude.End=10.0;
extrude.UseDirection = 0;
strcpy_s(extrude.ftrName, sizeof(extrude.ftrName), "extrud111");
int idExtrude = 0;
cvxPartExtrude(&extrude, &idExtrude);
标签:10,ZW3D,extrude,int,cvxPartExtrude,svxPoint,二次开发,idCrvList,cvxPartLine2pt
From: https://blog.csdn.net/qq_32460115/article/details/139541220