Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation


My first application
  • Profile - defining support points
  • Profile - defining the geometry
  • Profile - defining the topology
  • Profile - completing the profile
  • Body - prism the profile
  • Body - applying fillets
  • Body - adding the neck
  • Body - creating a hollowed solid
  • Threading - creating surfaces
  • Threading - defining 2D curves
  • Threading - building edges and wires
  • Threading - creation and building the resulting compound


  • Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
    Technical overview
    Areas of use
    Advantages
    FAQ
    Screenshots
    Shape factory
    Shape gallery
    Demonstrations
    What's new
    System requirements
    Download Center
    Public license
    Documentation
    Getting started
    Forums
    Open Source community
    Training and e-learning
    A-la Carte Support
    Value-added software
    Complementary Components
    Customer Corner
    Company Profile
    Marketing Materials
    Contact Us
    News
    Home / Developer Corner / Getting started / My first application / Threading - creation and building the resulting compound

    Threading - creation and building the resulting compound

    You have computed the threading's wires. The threading will be a solid shape, so you must now compute the faces of the wires, the faces allowing you to join the wires, the shell out of these faces and then the solid itself. This can be a lengthy operation.

    There are always faster ways to build a solid when the base topology is defined. You would like to create a solid out of two wires. Open CASCADE Technology provides a quick way to do this by building a loft: a shell or a solid passing through a set of wires in a given sequence.


     



    The loft function is implemented in the BRepOffsetAPI_ThruSections class, which you use as follows:

    - Initialize the algorithm by creating an instance of the class. The first parameter of this constructor must be specified if you want to create a solid. By default, BRepOffsetAPI_ThruSections builds a shell.
    - Add the successive wires using the AddWire method.
    - Use the CheckCompatibility method to activate (or deactivate) the option that checks if the
    wires have same number of edges. In this case, wires have two edges each, so you can deactivate this option.
    - Ask for the resulting loft shape with the Shape method.


    BRepOffsetAPI_ThruSections aTool(Standard_True);

    aTool.AddWire(threadingWire1);
    aTool.AddWire(threadingWire2);
    aTool.CheckCompatibility(Standard_False);

    TopoDS_Shape myThreading = aTool.Shape();


    You are almost done building the bottle. Use the TopoDS_Compound and BRep_Builder classes to
    build single shape from myBody and myThreading:

    TopoDS_Compound aRes;
    BRep_Builder aBuilder;
    aBuilder.MakeCompound (aRes);
    aBuilder.Add (aRes, myBody);
    aBuilder.Add (aRes, myThreading);



     




    Congratulations! your bottle is complete. We hope that this tutorial has provided you with a feel for the industrial strength power of Open CASCADE Technology.

    previous step


    If you want to know more and develop major projects using Open CASCADE Technology, we invite you to study our training, support, and consulting services at http://www.opencascade.com/support. Our professional services can maximize the power of your Open CASCADE Technology applications.


     
     

    © OPEN CASCADE 2000 - 2013  |  Search  |  Contacts   |  Site map