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 / Spline and revolution solids

Forum

Spline and revolution solids
viviana2005/08/05 13:28
Hi,

I have a curve which is the product of a spline, I would like to use it to make a revolution solid, I did this...

GeomAPI_PointsToBSpline GeomAPI = GeomAPI_PointsToBSpline(array);
Handle(Geom_BSplineCurve) bsCurve = GeomAPI.Curve();
TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge(bsCurve);
Handle(Geom_Curve) myCurve = BRep_Tool::Curve(aEdge, First, Last); TopoDS_Solid aSolid = RepPrimAPI_MakeRevolution(Axes,myCurve,VMin,VMax,Ang);
...

I declared First and Last and all the parameters and it compiles o.k., but finally I can not get the revolution solid. I tried to use the bscurve directly which is a Geom_BSplineCurve but it didn't work either.

Maybe I have to do something else?

Thanks
PG2005/08/08 05:47
Hi
I think u need a closed loop curve to build a revolved solid. Make a wire out of ur b-spline and then build a
face out of it. Give this face as a input to ur constructor of BRepPrimAPI_MakeRevol.

regards

- GP
Roman Lygin2005/08/08 18:34
Hi,
The start and end points should lie on the axis and the curve should be planar.
No need to create an edge and then to extract a curve - this will be the same as original (i.e. myCurve = bsCurve).
Hope this helps.

Roman
 
 
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