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 - building edges and wires

    Threading - building edges and wires


    As you did when creating the base profile of the bottle, you can now:

    - compute the edges of the neck's threading.
    - compute two wires out if these edges.


     



    Previously, you built:

    - two cylindrical surfaces of the threading
    - three curves defining the threading's base geometry

    To compute the edges out of these curves, you again use the BRepBuilderAPI_MakeEdge class.
    One of its constructors allows you to build an edge out of a curve described in the 2D parametric space of a surface.


    TopoDS_Edge aEdge1OnSurf1 = BRepBuilderAPI_MakeEdge(aArc1 , aCyl1);
    TopoDS_Edge aEdge2OnSurf1 = BRepBuilderAPI_MakeEdge(aSegment , aCyl1);
    TopoDS_Edge aEdge1OnSurf2 = BRepBuilderAPI_MakeEdge(aArc2 , aCyl2);
    TopoDS_Edge aEdge2OnSurf2 = BRepBuilderAPI_MakeEdge(aSegment , aCyl2);


    And now, you can create the two threading's profiles lying on each surface.


    TopoDS_Wire threadingWire1 = BRepBuilderAPI_MakeWire(aEdge1OnSurf1 ,
    aEdge2OnSurf1);
    TopoDS_Wire threadingWire2 = BRepBuilderAPI_MakeWire(aEdge1OnSurf2 ,
    aEdge2OnSurf2);


    Remember that these wires were built out of a surface and 2D curves.

    One important data item on these wires is missing: there is no information on the 3D curves.
    Fortunately, you do not need to compute this by yourself, which can be a major task as the mathematics can be quite complex.

    When a shape contains all the necessary information except 3D curves, Open CASCADE Technology provides a tool to build them automatically. In the BRepLib tool package, you can use the BuildCurves3d method to
    compute 3D curves for all the edges of a shape.


    BRepLib::BuildCurves3d(threadingWire1);
    BRepLib::BuildCurves3d(threadingWire2);

    next step
    previous step


     
     

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