5.Component combination
The front ry has completed the bottle. Now we will use the TopoDS_Compound and BRep_Builder classes to combine myBody and myThreading:
TopoDS_Compound aRes; BRep_Builder aBuilder; ABuilder. MakeCompound (aRes ); ABuilder. Add (aRes, myBody ); ABuilder. Add (aRes, myThreading ); |
Congratulations! Your bottle is finished. Preview the results:
We hope this tutorial will give you a certain understanding of the powerful OCC.
The following is the MakeBottle function in the tutorial. The code can be found in src/MakeBottle. cxx.
This example ends. The final figure shows the final result of the example, but the tutorial does not explain how to render it, Because rendering is not part of occ.
There was a piece of translation upset, so I simply added a piece of English. I feel that I have no perseverance. I will take the time to continue the translation later.
The goal of translation is to learn it by yourself, and hope that the students who are learning this will benefit from it. In addition, there is no limit on what to repost. After all, the translation is actually bad. Only if it is true
It is helpful to you. If you have time, leave a message to let me know that someone is learning with me.