Rakesh Patil Thu, 04/27/2017 - 21:46 Forums: Other usage issuesHi all, Is it possible to group two shapes in Open Cascade? Not fusing, grouping. If yes, please guide me relevant examples or pointers. Thanks qa qa Fri, 04/28/2017 - 07:57 Hello Rakesh, OCCT provides such a container. It is called Compound. The following code snippet solves your problem: TopoDS_Compound aCompound; BRep_Builder aBuilder; aBuilder.MakeCompound(aCompound); aBuilder.Add(aCompound, aShape1); aBuilder.Add(aCompound, aShape2); In general, it creates a new shape of the compound type and two shapes are added to this container shape. qa qa Log in to post comments Rakesh Patil Fri, 04/28/2017 - 14:55 Thanks qa qa.. It works well for now :-) Log in to post comments
Fri, 04/28/2017 - 07:57
Hello Rakesh,
OCCT provides such a container. It is called Compound. The following code snippet solves your problem:
TopoDS_Compound aCompound;
BRep_Builder aBuilder; aBuilder.MakeCompound(aCompound);
aBuilder.Add(aCompound, aShape1);
aBuilder.Add(aCompound, aShape2);
In general, it creates a new shape of the compound type and two shapes are added to this container shape.
qa qa
Fri, 04/28/2017 - 14:55
Thanks qa qa.. It works well for now :-)