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

Search the Forums
See All Topics

Could export Vertex and Edges to IGES file format

Could export Vertex and Edges to IGES file format
Game Milky 2013/03/27 12:07

Dear All,

I want to export Vertex and Edges to IGES file format!

I tried the following way, what i normally use for faces.

I have an array of edges:

TopoDS_Edge Edges;

Handle(Geom_Curve) curve = BRep_Tool::Curve(edge, first, last);

//Writing Iges f

IGESControl_Writer face("MM", 1);
if (!Interface_Static::SetIVal("write.precision.mode",-1))

//face.AddShape(Edges); // to add OCC shapes
face.AddGeom(curve); // to add curve and surfaces
//adds shape to IGES model
Standard_Boolean OKface = face.Write("Edges.igs");

Have no error message but the output Edges.igs is empty! Only Global section is there!

Any help!

Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

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