Archived discussion

How to create the cylinder shell?

ModelingFri, 11/29/2024 - 09:242 replies

Browse this forum
QuestionAuthor

Hello, please tell me. How to create and save (STEP) the cylinder shell, i.e. to have the top and bottom open, just one side surface

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1
BRepPrimAPI_MakeCylinder aBuilder(100.0, 50.0);
aBuilder.Build();
if (!aBuilder.IsDone()) { Error }

TopoDS_Face aFace = aBuilder.Face();
...
STEPControl_Writer aWriter;
if (aWriter.Transfer (aFace, STEPControl_AsIs) != IFSelect_RetDone) { Error }
if (aWriter.Write ("cylinder.stp") != IFSelect_RetDone) { Error }
02Author

Thank you very much. I overdid it myself, I started using gp_Cylinder, convert to Surface etc. Everything turned out to be much simpler.