
Thu, 07/03/2025 - 12:39
Forums:
BRepPrimAPI_MakeBox makeBoxxx(50, 50, 80);
BRepPrimAPI_MakeCone makeCone(50, 25, 100);
gp_Trsf trsfx1;
trsfx1.SetTranslation(gp_Vec(-(50 / 2), -(50 / 2), -(80 / 2)));
TopoDS_Shape Box = BRepBuilderAPI_Transform(makeBoxxx, trsfx1);
gp_Trsf trsfx;
trsfx.SetTranslation(gp_Vec(0, 0, -(100 / 2)));
TopoDS_Shape Cone = BRepBuilderAPI_Transform(makeCone, trsfx);
Handle(HLRBRep_Algo) pHLRAlgo = new HLRBRep_Algo();
pHLRAlgo->Projector(algoProjector);
pHLRAlgo->Add(Box);
pHLRAlgo->Add(Cone);
pHLRAlgo->Update();
HLRBRep_HLRToShape hlrToShape(pHLRAlgo);
TopoDS_Shape shape = hlrToShape.HCompound();
Executing the above code did not result in the hidden geometric edges of BOX. May I ask if this writing style is correct
Thu, 07/03/2025 - 19:54
Have you tried combining shapes into a single
TopoDS_Compound
? Does it make any difference?Fri, 07/04/2025 - 03:45
I want to obtain the occlusion relationship between them. HLRBRep-PolyAlgo can get the result I want, but unfortunately it only gets line segments
Sat, 07/05/2025 - 00:16
Why not to use Boolean operations for that?