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

Search the Forums
See All Topics
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 / Forums / Usage issues / Maybe a Bug: when use BRepBuilderAPI_MakeFace to make a TopoDS_Face from a TopoDS_Wire

Maybe a Bug: when use BRepBuilderAPI_MakeFace to make a TopoDS_Face from a TopoDS_Wire

Maybe a Bug: when use BRepBuilderAPI_MakeFace to make a TopoDS_Face from a TopoDS_Wire
zhangzhigang824 2009/06/21 04:33
Hi everyone,

I use the followed code to make a AIS_Shape and display it.

Standard_Real myData[25][3] = {
          {10.671875, 5.500000, 300},
          {15.234375, 8.703125, 300},
          {19.953125, 15.250000, 300},
          {21.328125, 24.390625, 300},
          {21.031250, 38.562500, 300},
          {23.156250, 37.187500, 300},
          {28.796875, 37.187500, 300},
          {30.015625, 38.562500, 300},
          {32.296875, 36.734375, 300},
          {31.078125, 35.812500, 300},                    
          {31.078125, 8.390625, 300},          
          {33.828125, 8.390625, 300},
          {34.734375, 8.703125, 300},
          {35.187500, 12.359375, 300},          
          {35.953125, 11.890625, 300},
          {36.406250, 9.000000, 300},
          {37.484375, 8.703125, 300},
          {36.406250, 6.718750, 300},          
          {28.953125, 6.718750, 300},          
          {28.953125, 36.265625, 300},
          {23.312500, 36.265625, 300},
          {23.468750, 23.171875, 300},
          {21.781250, 14.187500, 300},
          {15.546875, 7.171875, 300},
          {11.125000, 5.046875, 300}          
     };
BRepBuilderAPI_MakePolygon myPolygon;
for (int i=0; i<25; i++)
{
gp_Pnt pnt(myData[i][0],myData[i][1],myData[i][2]);
myPolygon.Add(pnt);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}
myPolygon.Close();
TopoDS_Wire myWire = myPolygon.Wire();
TopoDS_Face myFace = BRepBuilderAPI_MakeFace(myWire);
Handle(AIS_Shape) aAISShape = new AIS_Shape(myFace);
m_hContext->Display(aAISShape);

The shape can be displayed, but it is so surprising, because it is not what we we expected for. I am sure the data is correct. Curiously, the TopoDS_Wire is displayed all right. I think this is a bug of OpenCasCade.

Thanks in advance!
Yaron 2012/11/19 10:09
I also encountered with the same issue!
I'm using OCCT v6.5.3
any news regarding it?
Thanks
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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