Opencascade tutorial-bottle (4)

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.