Home
Reply
Contributor
Posts: 24
0

Can HOOPS two shells which only has one face respectively perfrom boolean operation(subtract)?

HOOPS version:19.01

Two shells with many faces can perform intersect operation:

but two shells only  have one face respectively failed to perform intersect operation,return value is -1

 

typedef struct paraShell
{
long keyIndex;
int pcout;
HPoint * pList;
int facecount;
int* facelist;
}*PparaShell;

 

 

HPoint p1(0,0,0);
HPoint p2(20,0,0);
HPoint p3(20,60,0);
HPoint p4(10,50,0);
vector<HPoint> list_1;

list_1.push_back(p1);
list_1.push_back(p2);
list_1.push_back(p3);
list_1.push_back(p4);


HPoint p11(5,2,0);
HPoint p12(9,3,0);
HPoint p13(7,5,0);
vector<HPoint> list_2;
list_2.push_back(p11);
list_2.push_back(p12);
list_2.push_back(p13);
paraShell para1,para2;

 

CreateFaceShellNoDisp(list_1, para1);//get shell parameters
CreateFaceShellNoDisp(list_2, para2);

 

HC_KEY keyins = HC_Compute_Boolean_Shell(para1.pcout, para1.pList, NULL,para1.facecount, para1.facelist,\
para2.pcout, para2.pList, NULL,para2.facecount, para2.facelist,"boolean type=intersect");