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

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
Forum
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 / Forum / How to make a sylinder with elliptical base.

Forum

How to make a sylinder with elliptical base.
Erwin2009/06/29 12:16
If 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.2009/06/29 14:31
Hello Erwin,

please take a look at: BRepPrimAPI_MakePrism.

Regards,

Dennis

Erwin2009/06/30 09:16
I already know 'BRepPrimAPI_MakePrism'.
but I don't know make a ellipse in order to make prism.
show me the example, please.
Dennis G.2009/07/02 09: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
Erwin2009/07/06 04:28
Hello Dennis.

I can make it I want shape now.
Thanks for your answer.
Good day!!

Erwin
 
 
Latest news
  • FAQ section updated
  • OPEN CASCADE Uses Intel ® Parallel Studio XE to Introduce Parallelism into SALOME SMESH Module
  • Open CASCADE Technology 6.5.2 is available for download!

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