mekibos Mon, 06/29/2009 - 14:16 Forums: Other usage issuesIf I want to make a cone with circular base, I use 'BRepPrimAPI_MakeCylinder'. but when I make a sylinder with elliptical base, I don't know about it. what is useful syntex? Dennis G. Mon, 06/29/2009 - 16:31 Hello Erwin, please take a look at: BRepPrimAPI_MakePrism. Regards, Dennis Log in to post comments mekibos Tue, 06/30/2009 - 11:16 I already know 'BRepPrimAPI_MakePrism'. but I don't know make a ellipse in order to make prism. show me the example, please. Log in to post comments Dennis G. Thu, 07/02/2009 - 11:07 Hello again, I'm absolutely not sure if the following procedure works, but you might give it a try: 1. Create a gp_Elips : gp_Elips anEllipse(A2 : Ax2; MajorRadius, MinorRadius : Real); 2. Make a TopoDS_Edge: BRepBuilder_MakeEdge edgeMaker(anEllipse); TopoDS_Edge anEdge = edgeMaker.Edge(); 3. Make a TopoDS_Wire: BRepBuilderAPI_MakeWire wireMaker(anEdge); TopoDS_Wire aWire = wireMaker.Wire(); 4. Make a TopoDS_Face: BRepBuilderAPI_MakeFace faceMaker(aWire); TopoDS_Face aFace = faceMaker.Face(); 5. Make a Prism: BRepPrimAPI_MakePrism prismMaker(aFace); TopoDS_Shape finalShape = prismMaker.Shape(); I did NOT test the listed steps. I hope it is of any help. Good luck, Dennis Log in to post comments mekibos Mon, 07/06/2009 - 06:28 Hello Dennis. I can make it I want shape now. Thanks for your answer. Good day!! Erwin Log in to post comments
Mon, 06/29/2009 - 16:31
Hello Erwin,
please take a look at: BRepPrimAPI_MakePrism.
Regards,
Dennis
Tue, 06/30/2009 - 11:16
I already know 'BRepPrimAPI_MakePrism'.
but I don't know make a ellipse in order to make prism.
show me the example, please.
Thu, 07/02/2009 - 11:07
Hello again,
I'm absolutely not sure if the following procedure works, but you might give it a try:
1. Create a gp_Elips : gp_Elips anEllipse(A2 : Ax2; MajorRadius, MinorRadius : Real);
2. Make a TopoDS_Edge: BRepBuilder_MakeEdge edgeMaker(anEllipse);
TopoDS_Edge anEdge = edgeMaker.Edge();
3. Make a TopoDS_Wire: BRepBuilderAPI_MakeWire wireMaker(anEdge);
TopoDS_Wire aWire = wireMaker.Wire();
4. Make a TopoDS_Face: BRepBuilderAPI_MakeFace faceMaker(aWire);
TopoDS_Face aFace = faceMaker.Face();
5. Make a Prism: BRepPrimAPI_MakePrism prismMaker(aFace);
TopoDS_Shape finalShape = prismMaker.Shape();
I did NOT test the listed steps.
I hope it is of any help.
Good luck,
Dennis
Mon, 07/06/2009 - 06:28
Hello Dennis.
I can make it I want shape now.
Thanks for your answer.
Good day!!
Erwin