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

Search the Forums
See All Topics

Save a wire to step file

Save a wire to step file
Cauchy Ding 2013/02/27 11:17
Hi Guys,

Save a single wire to a step file using STEPControl_AsIs mode, and read it back to application. I find the wire is gone, I just find several independent edges instead a wire. I have tried many methods to fix this problem, but still can't find a right way to load it back as a wire.
Any suggestion is welcome. Thanks in advance.

Alexander Luger 2013/04/11 10:48
Hey cauchy ding,

I have the same problem, I am not able to load it back as a wire. Did you solve the problem?

Game Milky 2013/04/11 11:53

I have the same problem, anybody who have an idea on this issue?

Benjamin Bihler 2014/03/14 14:53
I have asked myself the same question. Is there still nobody knowing an answer?
Lambda 2014/05/06 02:18
I'm trying to find a solution but the edges are not connected. Maybe somebody hat an idee?
Thanks for any help.
Lambda 2014/05/06 03:56
Maybe with a small example it will be easier to find a way to solve this question:

     TopoDS_Edge aEdge1 = BRepBuilderAPI_MakeEdge(GC_MakeSegment(gp_Pnt(0., 0., 0.), gp_Pnt(0., 10., 0.)));
     TopoDS_Edge aEdge2 = BRepBuilderAPI_MakeEdge(GC_MakeSegment(gp_Pnt(0., 10., 0.), gp_Pnt(10., 10., 0.)));
     TopoDS_Edge aEdge3 = BRepBuilderAPI_MakeEdge(GC_MakeSegment(gp_Pnt(10., 10., 0.), gp_Pnt(10., 0., 0.)));
     TopoDS_Edge aEdge4 = BRepBuilderAPI_MakeEdge(GC_MakeSegment(gp_Pnt(10., 0., 0.), gp_Pnt(0., 0., 0.)));

     TopoDS_Wire aWire1 = BRepBuilderAPI_MakeWire(aEdge1, aEdge2, aEdge3, aEdge4).Wire();

     STEPControl_Writer writer;

     writer.Transfer(aWire1, STEPControl_AsIs);


If you try to open the file test.step, the wire is not connected :-(

Thanks again!
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map