For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

About the Exercise:Bean/Topology

Cherry's picture

Excuse me ,I am a newuser to use the opencascade.
I have a question.
When I made a Wire,like this:
TopoDS_Wire aWire=BRepBuilderAPI_MakeWire(ELeft,EBot,ERight,ETop);
I can not to make a SolidTopFace.
The code like this:
TopoDS_Face aFace=BRepBuilderAPI_MakeFace(aWire);
Standard_Real myHeight=30;
gp_Vec v(0 , 0 , myHeight);
BRepPrimAPI_MakePrism prism(aFace , v);
TopoDS_Shape result = prism.Shape();

TopTools_ListOfShape CTDescLine;
CTDescLine= prism.Generated(ETop);
TopoDS_Shape SolidTopFace=CTDescLine.First();
myAISContext->Display(new AIS_Shape(SolidTopFace));

But if I put the ETop in the first position of MakeWire,like this:
TopoDS_Wire Wire1=BRepBuilderAPI_MakeWire(ETop,EBot,ELeft,ERight);
It will be work.
Could anyone tell me Why?
Thank's so lot!

Cherry's picture

Excute me.
The 4th line from the Bottom.It should be this:
TopoDS_Wire Wire1=BRepBuilderAPI_MakeWire(ETop,ELeft,EBot,ERight);
I will be work.
Thank's so much! ^_^

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.